- All Superinterfaces:
QtObjectInterface
- All Known Implementing Classes:
QChart
,QGraphicsAnchorLayout
,QGraphicsGridLayout
,QGraphicsLayout
,QGraphicsLinearLayout
,QGraphicsProxyWidget
,QGraphicsWidget
,QLegend
,QPolarChart
Can be inherited to allow your custom items to be managed by layouts
Java wrapper for Qt class QGraphicsLayoutItem
- Since:
- This class was introduced in Qt 4.4.
Following functions are protected in the Qt interface, all implementations of this interface may implement these function:
@QtUninvokable
protected final void setGraphicsItem(io.qt.widgets.@Nullable QGraphicsItem item){
QGraphicsLayoutItem.MemberAccess.of(this).setGraphicsItem(item);
}
@QtUninvokable
protected final void setOwnedByLayout(boolean ownedByLayout){
QGraphicsLayoutItem.MemberAccess.of(this).setOwnedByLayout(ownedByLayout);
}
@QtUninvokable
protected abstract io.qt.core.@NonNull QSizeF sizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSizeF constraint);
-
Method Summary
Modifier and TypeMethodDescriptiondefault QMarginsF
default QRectF
default QSizeF
effectiveSizeHint
(Qt.SizeHint which) Overloaded function foreffectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
withconstraint = new io.qt.core.QSizeF()
.default QSizeF
effectiveSizeHint
(Qt.SizeHint which, QSize constraint) Overloaded function foreffectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
.default QSizeF
effectiveSizeHint
(Qt.SizeHint which, QSizeF constraint) default QRectF
geometry()
default void
getContentsMargins
(double [] margins) default QGraphicsItem
default boolean
isLayout()
default double
default QSizeF
default double
default double
default QSizeF
default double
default boolean
default QGraphicsLayoutItem
default double
default QSizeF
default double
default void
setGeometry
(QRect rect) Overloaded function forsetGeometry(io.qt.core.QRectF)
.default void
setGeometry
(QRectF rect) default void
setMaximumHeight
(double height) default void
setMaximumSize
(double w, double h) default void
setMaximumSize
(QSize size) Overloaded function forsetMaximumSize(io.qt.core.QSizeF)
.default void
setMaximumSize
(QSizeF size) default void
setMaximumWidth
(double width) default void
setMinimumHeight
(double height) default void
setMinimumSize
(double w, double h) default void
setMinimumSize
(QSize size) Overloaded function forsetMinimumSize(io.qt.core.QSizeF)
.default void
setMinimumSize
(QSizeF size) default void
setMinimumWidth
(double width) default void
default void
setPreferredHeight
(double height) default void
setPreferredSize
(double w, double h) default void
setPreferredSize
(QSize size) Overloaded function forsetPreferredSize(io.qt.core.QSizeF)
.default void
setPreferredSize
(QSizeF size) default void
setPreferredWidth
(double width) default void
setSizePolicy
(QSizePolicy policy) default void
setSizePolicy
(QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy) Overloaded function forsetSizePolicy(io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.ControlType)
withcontrolType = io.qt.widgets.QSizePolicy.ControlType.DefaultType
.default void
setSizePolicy
(QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy, QSizePolicy.ControlType controlType) default QSizePolicy
default void
Methods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Method Details
-
contentsRect
- Returns:
-
effectiveSizeHint
@QtDeclaredFinal @QtUninvokable default QSizeF effectiveSizeHint(Qt.SizeHint which, QSizeF constraint) - Parameters:
which
-constraint
-- Returns:
-
geometry
- Returns:
-
graphicsItem
- Returns:
-
isLayout
- Returns:
-
maximumHeight
- Returns:
-
maximumSize
- Returns:
-
maximumWidth
- Returns:
-
minimumHeight
- Returns:
-
minimumSize
- Returns:
-
minimumWidth
- Returns:
-
ownedByLayout
- Returns:
- Since:
- This function was introduced in Qt 4.6.
-
parentLayoutItem
- Returns:
-
preferredHeight
- Returns:
-
preferredSize
- Returns:
-
preferredWidth
- Returns:
-
setMaximumHeight
- Parameters:
height
-
-
setMaximumSize
- Parameters:
size
-
-
setMaximumSize
- Parameters:
w
-h
-
-
setMaximumWidth
- Parameters:
width
-
-
setMinimumHeight
- Parameters:
height
-
-
setMinimumSize
- Parameters:
size
-
-
setMinimumSize
- Parameters:
w
-h
-
-
setMinimumWidth
- Parameters:
width
-
-
setParentLayoutItem
- Parameters:
parent
-
-
setPreferredHeight
- Parameters:
height
-
-
setPreferredSize
- Parameters:
size
-
-
setPreferredSize
- Parameters:
w
-h
-
-
setPreferredWidth
- Parameters:
width
-
-
setSizePolicy
- Parameters:
policy
-
-
setSizePolicy
@QtDeclaredFinal @QtUninvokable default void setSizePolicy(QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy, QSizePolicy.ControlType controlType) See
QGraphicsLayoutItem::
setSizePolicy(QSizePolicy::Policy, QSizePolicy::Policy, QSizePolicy::ControlType) - Parameters:
hPolicy
-vPolicy
-controlType
-
-
sizePolicy
- Returns:
-
getContentsMargins
- Parameters:
margins
-
-
setGeometry
- Parameters:
rect
-
-
updateGeometry
-
contentsMargins
- See Also:
-
effectiveSizeHint
Overloaded function for
effectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
withconstraint = new io.qt.core.QSizeF()
. -
effectiveSizeHint
@QtDeclaredFinal @QtUninvokable default QSizeF effectiveSizeHint(Qt.SizeHint which, QSize constraint) Overloaded function for
effectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
. -
setMaximumSize
Overloaded function for
setMaximumSize(io.qt.core.QSizeF)
. -
setMinimumSize
Overloaded function for
setMinimumSize(io.qt.core.QSizeF)
. -
setPreferredSize
Overloaded function for
setPreferredSize(io.qt.core.QSizeF)
. -
setSizePolicy
@QtDeclaredFinal @QtUninvokable default void setSizePolicy(QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy) Overloaded function for
setSizePolicy(io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.ControlType)
withcontrolType = io.qt.widgets.QSizePolicy.ControlType.DefaultType
. -
setGeometry
Overloaded function for
setGeometry(io.qt.core.QRectF)
.
-