- All Implemented Interfaces:
QtObjectInterface
,QGraphicsLayoutItem
public class QGraphicsGridLayout extends QGraphicsLayout
Grid layout for managing widgets in Graphics View
Java wrapper for Qt class QGraphicsGridLayout
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.qt.widgets.QGraphicsLayoutItem
QGraphicsLayoutItem.Impl, QGraphicsLayoutItem.MemberAccess
-
Constructor Summary
Constructors Modifier Constructor Description QGraphicsGridLayout()
Overloaded constructor forQGraphicsGridLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
.protected
QGraphicsGridLayout(QtObject.QPrivateConstructor p)
Constructor for internal use only.QGraphicsGridLayout(QGraphicsLayoutItem parent)
-
Method Summary
Modifier and Type Method Description void
addItem(QGraphicsLayoutItem item, int row, int column)
Overloaded function foraddItem(io.qt.widgets.QGraphicsLayoutItem, int, int, io.qt.core.Qt.Alignment)
withalignment = new io.qt.core.Qt.Alignment(0)
.void
addItem(QGraphicsLayoutItem item, int row, int column, int rowSpan, int columnSpan)
Overloaded function foraddItem(io.qt.widgets.QGraphicsLayoutItem, int, int, int, int, io.qt.core.Qt.Alignment)
withalignment = new io.qt.core.Qt.Alignment(0)
.void
addItem(QGraphicsLayoutItem item, int row, int column, int rowSpan, int columnSpan, Qt.Alignment alignment)
void
addItem(QGraphicsLayoutItem item, int row, int column, int rowSpan, int columnSpan, Qt.AlignmentFlag... alignment)
Overloaded function foraddItem(io.qt.widgets.QGraphicsLayoutItem, int, int, int, int, io.qt.core.Qt.Alignment)
.void
addItem(QGraphicsLayoutItem item, int row, int column, Qt.Alignment alignment)
void
addItem(QGraphicsLayoutItem item, int row, int column, Qt.AlignmentFlag... alignment)
Overloaded function foraddItem(io.qt.widgets.QGraphicsLayoutItem, int, int, io.qt.core.Qt.Alignment)
.Qt.Alignment
alignment(QGraphicsLayoutItem item)
Qt.Alignment
columnAlignment(int column)
int
columnCount()
double
columnMaximumWidth(int column)
double
columnMinimumWidth(int column)
double
columnPreferredWidth(int column)
double
columnSpacing(int column)
int
columnStretchFactor(int column)
int
count()
double
horizontalSpacing()
void
invalidate()
QGraphicsLayoutItem
itemAt(int index)
QGraphicsLayoutItem
itemAt(int row, int column)
void
removeAt(int index)
void
removeItem(QGraphicsLayoutItem item)
Qt.Alignment
rowAlignment(int row)
int
rowCount()
double
rowMaximumHeight(int row)
double
rowMinimumHeight(int row)
double
rowPreferredHeight(int row)
double
rowSpacing(int row)
int
rowStretchFactor(int row)
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
setColumnAlignment(int column, Qt.Alignment alignment)
void
setColumnAlignment(int column, Qt.AlignmentFlag... alignment)
Overloaded function forsetColumnAlignment(int, io.qt.core.Qt.Alignment)
.void
setColumnFixedWidth(int column, double width)
void
setColumnMaximumWidth(int column, double width)
void
setColumnMinimumWidth(int column, double width)
void
setColumnPreferredWidth(int column, double width)
void
setColumnSpacing(int column, double spacing)
void
setColumnStretchFactor(int column, int stretch)
void
setGeometry(QRectF rect)
void
setHorizontalSpacing(double spacing)
void
setRowAlignment(int row, Qt.Alignment alignment)
void
setRowAlignment(int row, Qt.AlignmentFlag... alignment)
Overloaded function forsetRowAlignment(int, io.qt.core.Qt.Alignment)
.void
setRowFixedHeight(int row, double height)
void
setRowMaximumHeight(int row, double height)
void
setRowMinimumHeight(int row, double height)
void
setRowPreferredHeight(int row, double height)
void
setRowSpacing(int row, double spacing)
void
setRowStretchFactor(int row, int stretch)
void
setSpacing(double spacing)
void
setVerticalSpacing(double spacing)
protected QSizeF
sizeHint(Qt.SizeHint which, QSizeF constraint)
double
verticalSpacing()
Methods inherited from class io.qt.widgets.QGraphicsLayout
activate, addChildLayoutItem, contentsMargins, contentsRect, effectiveSizeHint, effectiveSizeHint, geometry, getContentsMargins, graphicsItem, instantInvalidatePropagation, isActivated, 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
-
QGraphicsGridLayout
public QGraphicsGridLayout()Overloaded constructor for
QGraphicsGridLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
. -
QGraphicsGridLayout
-
QGraphicsGridLayout
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addItem
@QtUninvokable public final void addItem(QGraphicsLayoutItem item, int row, int column, Qt.AlignmentFlag... alignment)Overloaded function for
addItem(io.qt.widgets.QGraphicsLayoutItem, int, int, io.qt.core.Qt.Alignment)
. -
addItem
Overloaded function for
addItem(io.qt.widgets.QGraphicsLayoutItem, int, int, io.qt.core.Qt.Alignment)
withalignment = new io.qt.core.Qt.Alignment(0)
. -
addItem
@QtUninvokable public final void addItem(QGraphicsLayoutItem item, int row, int column, Qt.Alignment alignment) -
addItem
@QtUninvokable public final void addItem(QGraphicsLayoutItem item, int row, int column, int rowSpan, int columnSpan, Qt.AlignmentFlag... alignment)Overloaded function for
addItem(io.qt.widgets.QGraphicsLayoutItem, int, int, int, int, io.qt.core.Qt.Alignment)
. -
addItem
@QtUninvokable public final void addItem(QGraphicsLayoutItem item, int row, int column, int rowSpan, int columnSpan)Overloaded function for
addItem(io.qt.widgets.QGraphicsLayoutItem, int, int, int, int, io.qt.core.Qt.Alignment)
withalignment = new io.qt.core.Qt.Alignment(0)
. -
addItem
@QtUninvokable public final void addItem(QGraphicsLayoutItem item, int row, int column, int rowSpan, int columnSpan, Qt.Alignment alignment) -
alignment
-
columnAlignment
-
columnCount
-
columnMaximumWidth
-
columnMinimumWidth
-
columnPreferredWidth
-
columnSpacing
-
columnStretchFactor
-
horizontalSpacing
-
itemAt
-
removeItem
-
rowAlignment
-
rowCount
-
rowMaximumHeight
-
rowMinimumHeight
-
rowPreferredHeight
-
rowSpacing
-
rowStretchFactor
-
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
-
setColumnAlignment
Overloaded function for
setColumnAlignment(int, io.qt.core.Qt.Alignment)
. -
setColumnAlignment
-
setColumnFixedWidth
-
setColumnMaximumWidth
-
setColumnMinimumWidth
-
setColumnPreferredWidth
-
setColumnSpacing
-
setColumnStretchFactor
-
setHorizontalSpacing
-
setRowAlignment
Overloaded function for
setRowAlignment(int, io.qt.core.Qt.Alignment)
. -
setRowAlignment
-
setRowFixedHeight
-
setRowMaximumHeight
-
setRowMinimumHeight
-
setRowPreferredHeight
-
setRowSpacing
-
setRowStretchFactor
-
setSpacing
-
setVerticalSpacing
-
verticalSpacing
-
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
-