java.lang.Object
io.qt.QtObject
io.qt.widgets.QGraphicsLayout
io.qt.widgets.QGraphicsLinearLayout
- All Implemented Interfaces:
QtObjectInterface
,QGraphicsLayoutItem
Horizontal or vertical layout for managing widgets in Graphics View
Java wrapper for Qt class QGraphicsLinearLayout
- Since:
- This class was introduced in Qt 4.4.
-
Constructor Summary
ConstructorDescriptionOverloaded constructor forQGraphicsLinearLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
.QGraphicsLinearLayout
(Qt.Orientation orientation) Overloaded constructor forQGraphicsLinearLayout(io.qt.core.Qt.Orientation, io.qt.widgets.QGraphicsLayoutItem)
withparent = null
.QGraphicsLinearLayout
(Qt.Orientation orientation, QGraphicsLayoutItem parent) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addItem
(QGraphicsLayoutItem item) final void
Overloaded function foraddStretch(int)
withstretch = 1
.final void
addStretch
(int stretch) final Qt.Alignment
alignment
(QGraphicsLayoutItem item) int
count()
final void
dump()
Overloaded function fordump(int)
withindent = 0
.final void
dump
(int indent) SeeQGraphicsLinearLayout::
dump(int)const final void
insertItem
(int index, QGraphicsLayoutItem item) final void
insertStretch
(int index) Overloaded function forinsertStretch(int, int)
withstretch = 1
.final void
insertStretch
(int index, int stretch) void
itemAt
(int index) final double
itemSpacing
(int index) final Qt.Orientation
void
removeAt
(int index) final void
final void
setAlignment
(QGraphicsLayoutItem item, Qt.Alignment alignment) final void
setAlignment
(QGraphicsLayoutItem item, Qt.AlignmentFlag ... alignment) Overloaded function forsetAlignment(io.qt.widgets.QGraphicsLayoutItem, io.qt.core.Qt.Alignment)
.void
setGeometry
(QRectF rect) final void
setItemSpacing
(int index, double spacing) final void
setOrientation
(Qt.Orientation orientation) final void
setSpacing
(double spacing) final void
setStretchFactor
(QGraphicsLayoutItem item, int stretch) protected QSizeF
sizeHint
(Qt.SizeHint which, QSizeF constraint) final double
spacing()
final int
Methods inherited from class io.qt.widgets.QGraphicsLayout
activate, addChildLayoutItem, contentsRect, effectiveSizeHint, effectiveSizeHint, effectiveSizeHint, geometry, getContentsMargins, graphicsItem, instantInvalidatePropagation, isActivated, isLayout, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, ownedByLayout, parentLayoutItem, preferredHeight, preferredSize, preferredWidth, setContentsMargins, setGeometry, setGraphicsItem, setInstantInvalidatePropagation, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumSize, setMinimumWidth, setOwnedByLayout, setParentLayoutItem, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredSize, setPreferredWidth, setSizePolicy, setSizePolicy, setSizePolicy, sizeHint, sizeHint, sizePolicy, updateGeometry, widgetEvent
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
-
QGraphicsLinearLayout
- Parameters:
parent
-
-
QGraphicsLinearLayout
- Parameters:
orientation
-parent
-
-
QGraphicsLinearLayout
public QGraphicsLinearLayout()Overloaded constructor for
QGraphicsLinearLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
. -
QGraphicsLinearLayout
Overloaded constructor for
QGraphicsLinearLayout(io.qt.core.Qt.Orientation, io.qt.widgets.QGraphicsLayoutItem)
withparent = null
.
-
-
Method Details
-
addItem
- Parameters:
item
-
-
addStretch
- Parameters:
stretch
-
-
alignment
- Parameters:
item
-- Returns:
-
dump
See
QGraphicsLinearLayout::
dump(int)const - Parameters:
indent
-
-
insertItem
- Parameters:
index
-item
-
-
insertStretch
- Parameters:
index
-stretch
-
-
itemSpacing
- Parameters:
index
-- Returns:
-
orientation
- Returns:
-
removeItem
- Parameters:
item
-
-
setAlignment
- Parameters:
item
-alignment
-
-
setItemSpacing
- Parameters:
index
-spacing
-
-
setOrientation
- Parameters:
orientation
-
-
setSpacing
- Parameters:
spacing
-
-
setStretchFactor
- Parameters:
item
-stretch
-
-
spacing
- Returns:
-
stretchFactor
- Parameters:
item
-- Returns:
-
count
- Specified by:
count
in classQGraphicsLayout
- Returns:
-
invalidate
- Overrides:
invalidate
in classQGraphicsLayout
-
itemAt
- Specified by:
itemAt
in classQGraphicsLayout
- Parameters:
index
-- Returns:
-
removeAt
- Specified by:
removeAt
in classQGraphicsLayout
- Parameters:
index
-
-
setGeometry
- Specified by:
setGeometry
in interfaceQGraphicsLayoutItem
- Overrides:
setGeometry
in classQGraphicsLayout
- Parameters:
rect
-
-
sizeHint
- Specified by:
sizeHint
in classQGraphicsLayout
- Parameters:
which
-constraint
-- Returns:
-
addStretch
Overloaded function for
addStretch(int)
withstretch = 1
. -
dump
Overloaded function for
dump(int)
withindent = 0
. -
insertStretch
Overloaded function for
insertStretch(int, int)
withstretch = 1
. -
setAlignment
@QtUninvokable public final void setAlignment(QGraphicsLayoutItem item, Qt.AlignmentFlag ... alignment) Overloaded function for
setAlignment(io.qt.widgets.QGraphicsLayoutItem, io.qt.core.Qt.Alignment)
.
-