- All Implemented Interfaces:
QtObjectInterface
,QGraphicsLayoutItem
- Direct Known Subclasses:
QGraphicsAnchorLayout
,QGraphicsGridLayout
,QGraphicsLinearLayout
The base class for all layouts in Graphics View
Java wrapper for Qt class QGraphicsLayout
-
Constructor Summary
ConstructorDescriptionOverloaded constructor forQGraphicsLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
.QGraphicsLayout
(QGraphicsLayoutItem parent) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
activate()
protected final void
addChildLayoutItem
(QGraphicsLayoutItem layoutItem) final QRectF
abstract int
count()
final QSizeF
effectiveSizeHint
(Qt.SizeHint which) Overloaded function foreffectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
withconstraint = new io.qt.core.QSizeF()
.final QSizeF
effectiveSizeHint
(Qt.SizeHint which, QSize constraint) Overloaded function foreffectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
.final QSizeF
effectiveSizeHint
(Qt.SizeHint which, QSizeF constraint) final QRectF
geometry()
void
getContentsMargins
(double [] margins) final QGraphicsItem
static boolean
SeeQGraphicsLayout::
instantInvalidatePropagation() void
final boolean
boolean
isEmpty()
final boolean
isLayout()
abstract QGraphicsLayoutItem
itemAt
(int i) final double
final QSizeF
final double
final double
final QSizeF
final double
final boolean
final QGraphicsLayoutItem
final double
final QSizeF
final double
abstract void
removeAt
(int index) final void
setContentsMargins
(double left, double top, double right, double bottom) final void
setGeometry
(QRect rect) Overloaded function forsetGeometry(io.qt.core.QRectF)
.void
setGeometry
(QRectF rect) protected final void
setGraphicsItem
(QGraphicsItem item) static void
setInstantInvalidatePropagation
(boolean enable) SeeQGraphicsLayout::
setInstantInvalidatePropagation(bool) final void
setMaximumHeight
(double height) final void
setMaximumSize
(double w, double h) final void
setMaximumSize
(QSize size) Overloaded function forsetMaximumSize(io.qt.core.QSizeF)
.final void
setMaximumSize
(QSizeF size) final void
setMaximumWidth
(double width) final void
setMinimumHeight
(double height) final void
setMinimumSize
(double w, double h) final void
setMinimumSize
(QSize size) Overloaded function forsetMinimumSize(io.qt.core.QSizeF)
.final void
setMinimumSize
(QSizeF size) final void
setMinimumWidth
(double width) protected final void
setOwnedByLayout
(boolean ownedByLayout) final void
final void
setPreferredHeight
(double height) final void
setPreferredSize
(double w, double h) final void
setPreferredSize
(QSize size) Overloaded function forsetPreferredSize(io.qt.core.QSizeF)
.final void
setPreferredSize
(QSizeF size) final void
setPreferredWidth
(double width) final void
setSizePolicy
(QSizePolicy policy) final 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
.final void
setSizePolicy
(QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy, QSizePolicy.ControlType controlType) protected final QSizeF
sizeHint
(Qt.SizeHint which) Overloaded function forsizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
withconstraint = new io.qt.core.QSizeF()
.protected final QSizeF
sizeHint
(Qt.SizeHint which, QSize constraint) Overloaded function forsizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
.protected abstract QSizeF
sizeHint
(Qt.SizeHint which, QSizeF constraint) final QSizePolicy
void
void
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.qt.widgets.QGraphicsLayoutItem
contentsMargins
Methods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Constructor Details
-
QGraphicsLayout
- Parameters:
parent
-
-
QGraphicsLayout
public QGraphicsLayout()Overloaded constructor for
QGraphicsLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
.
-
-
Method Details
-
activate
-
addChildLayoutItem
- Parameters:
layoutItem
-
-
contentsRect
- Specified by:
contentsRect
in interfaceQGraphicsLayoutItem
- Returns:
-
effectiveSizeHint
- Specified by:
effectiveSizeHint
in interfaceQGraphicsLayoutItem
- Parameters:
which
-constraint
-- Returns:
-
geometry
- Specified by:
geometry
in interfaceQGraphicsLayoutItem
- Returns:
-
graphicsItem
- Specified by:
graphicsItem
in interfaceQGraphicsLayoutItem
- Returns:
-
isActivated
- Returns:
-
isLayout
- Specified by:
isLayout
in interfaceQGraphicsLayoutItem
- Returns:
-
maximumHeight
- Specified by:
maximumHeight
in interfaceQGraphicsLayoutItem
- Returns:
-
maximumSize
- Specified by:
maximumSize
in interfaceQGraphicsLayoutItem
- Returns:
-
maximumWidth
- Specified by:
maximumWidth
in interfaceQGraphicsLayoutItem
- Returns:
-
minimumHeight
- Specified by:
minimumHeight
in interfaceQGraphicsLayoutItem
- Returns:
-
minimumSize
- Specified by:
minimumSize
in interfaceQGraphicsLayoutItem
- Returns:
-
minimumWidth
- Specified by:
minimumWidth
in interfaceQGraphicsLayoutItem
- Returns:
-
ownedByLayout
- Specified by:
ownedByLayout
in interfaceQGraphicsLayoutItem
- Returns:
-
parentLayoutItem
- Specified by:
parentLayoutItem
in interfaceQGraphicsLayoutItem
- Returns:
-
preferredHeight
- Specified by:
preferredHeight
in interfaceQGraphicsLayoutItem
- Returns:
-
preferredSize
- Specified by:
preferredSize
in interfaceQGraphicsLayoutItem
- Returns:
-
preferredWidth
- Specified by:
preferredWidth
in interfaceQGraphicsLayoutItem
- Returns:
-
setContentsMargins
@QtUninvokable public final void setContentsMargins(double left, double top, double right, double bottom) - Parameters:
left
-top
-right
-bottom
-
-
setGraphicsItem
- Parameters:
item
-
-
setMaximumHeight
- Specified by:
setMaximumHeight
in interfaceQGraphicsLayoutItem
- Parameters:
height
-
-
setMaximumSize
- Specified by:
setMaximumSize
in interfaceQGraphicsLayoutItem
- Parameters:
size
-
-
setMaximumSize
- Specified by:
setMaximumSize
in interfaceQGraphicsLayoutItem
- Parameters:
w
-h
-
-
setMaximumWidth
- Specified by:
setMaximumWidth
in interfaceQGraphicsLayoutItem
- Parameters:
width
-
-
setMinimumHeight
- Specified by:
setMinimumHeight
in interfaceQGraphicsLayoutItem
- Parameters:
height
-
-
setMinimumSize
- Specified by:
setMinimumSize
in interfaceQGraphicsLayoutItem
- Parameters:
size
-
-
setMinimumSize
- Specified by:
setMinimumSize
in interfaceQGraphicsLayoutItem
- Parameters:
w
-h
-
-
setMinimumWidth
- Specified by:
setMinimumWidth
in interfaceQGraphicsLayoutItem
- Parameters:
width
-
-
setOwnedByLayout
- Parameters:
ownedByLayout
-
-
setParentLayoutItem
- Specified by:
setParentLayoutItem
in interfaceQGraphicsLayoutItem
- Parameters:
parent
-
-
setPreferredHeight
- Specified by:
setPreferredHeight
in interfaceQGraphicsLayoutItem
- Parameters:
height
-
-
setPreferredSize
- Specified by:
setPreferredSize
in interfaceQGraphicsLayoutItem
- Parameters:
size
-
-
setPreferredSize
- Specified by:
setPreferredSize
in interfaceQGraphicsLayoutItem
- Parameters:
w
-h
-
-
setPreferredWidth
- Specified by:
setPreferredWidth
in interfaceQGraphicsLayoutItem
- Parameters:
width
-
-
setSizePolicy
- Specified by:
setSizePolicy
in interfaceQGraphicsLayoutItem
- Parameters:
policy
-
-
setSizePolicy
@QtUninvokable public final void setSizePolicy(QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy, QSizePolicy.ControlType controlType) See
QGraphicsLayoutItem::
setSizePolicy(QSizePolicy::Policy, QSizePolicy::Policy, QSizePolicy::ControlType) - Specified by:
setSizePolicy
in interfaceQGraphicsLayoutItem
- Parameters:
hPolicy
-vPolicy
-controlType
-
-
sizePolicy
- Specified by:
sizePolicy
in interfaceQGraphicsLayoutItem
- Returns:
-
count
- Returns:
-
getContentsMargins
- Specified by:
getContentsMargins
in interfaceQGraphicsLayoutItem
- Parameters:
margins
-
-
invalidate
-
isEmpty
- Specified by:
isEmpty
in interfaceQGraphicsLayoutItem
- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
itemAt
- Parameters:
i
-- Returns:
-
removeAt
- Parameters:
index
-
-
setGeometry
- Specified by:
setGeometry
in interfaceQGraphicsLayoutItem
- Parameters:
rect
-
-
sizeHint
- Parameters:
which
-constraint
-- Returns:
-
updateGeometry
- Specified by:
updateGeometry
in interfaceQGraphicsLayoutItem
-
widgetEvent
- Parameters:
e
-
-
instantInvalidatePropagation
public static boolean instantInvalidatePropagation()See
QGraphicsLayout::
instantInvalidatePropagation() - Returns:
-
setInstantInvalidatePropagation
public static void setInstantInvalidatePropagation(boolean enable) See
QGraphicsLayout::
setInstantInvalidatePropagation(bool) - Parameters:
enable
-
-
effectiveSizeHint
Overloaded function for
effectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
withconstraint = new io.qt.core.QSizeF()
.- Specified by:
effectiveSizeHint
in interfaceQGraphicsLayoutItem
-
effectiveSizeHint
Overloaded function for
effectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
.- Specified by:
effectiveSizeHint
in interfaceQGraphicsLayoutItem
-
setMaximumSize
Overloaded function for
setMaximumSize(io.qt.core.QSizeF)
.- Specified by:
setMaximumSize
in interfaceQGraphicsLayoutItem
-
setMinimumSize
Overloaded function for
setMinimumSize(io.qt.core.QSizeF)
.- Specified by:
setMinimumSize
in interfaceQGraphicsLayoutItem
-
setPreferredSize
Overloaded function for
setPreferredSize(io.qt.core.QSizeF)
.- Specified by:
setPreferredSize
in interfaceQGraphicsLayoutItem
-
setSizePolicy
@QtUninvokable public final 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
.- Specified by:
setSizePolicy
in interfaceQGraphicsLayoutItem
-
setGeometry
Overloaded function for
setGeometry(io.qt.core.QRectF)
.- Specified by:
setGeometry
in interfaceQGraphicsLayoutItem
-
sizeHint
Overloaded function for
sizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
withconstraint = new io.qt.core.QSizeF()
. -
sizeHint
Overloaded function for
sizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
.
-