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