- All Implemented Interfaces:
QtObjectInterface
,QGraphicsLayoutItem
Grid layout for managing widgets in Graphics View
Java wrapper for Qt class QGraphicsGridLayout
- Since:
- This class was introduced in Qt 4.4.
-
Constructor Summary
ConstructorDescriptionOverloaded constructor forQGraphicsGridLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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)
.final 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)
.final void
addItem
(QGraphicsLayoutItem item, int row, int column, int rowSpan, int columnSpan, Qt.Alignment alignment) final 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)
.final void
addItem
(QGraphicsLayoutItem item, int row, int column, Qt.Alignment alignment) final 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)
.final Qt.Alignment
alignment
(QGraphicsLayoutItem item) final Qt.Alignment
columnAlignment
(int column) final int
final double
columnMaximumWidth
(int column) final double
columnMinimumWidth
(int column) final double
columnPreferredWidth
(int column) final double
columnSpacing
(int column) final int
columnStretchFactor
(int column) int
count()
final double
void
itemAt
(int index) final QGraphicsLayoutItem
itemAt
(int row, int column) void
removeAt
(int index) final void
final Qt.Alignment
rowAlignment
(int row) final int
rowCount()
final double
rowMaximumHeight
(int row) final double
rowMinimumHeight
(int row) final double
rowPreferredHeight
(int row) final double
rowSpacing
(int row) final int
rowStretchFactor
(int row) 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)
.final void
setColumnAlignment
(int column, Qt.Alignment alignment) final void
setColumnAlignment
(int column, Qt.AlignmentFlag ... alignment) Overloaded function forsetColumnAlignment(int, io.qt.core.Qt.Alignment)
.final void
setColumnFixedWidth
(int column, double width) final void
setColumnMaximumWidth
(int column, double width) final void
setColumnMinimumWidth
(int column, double width) final void
setColumnPreferredWidth
(int column, double width) final void
setColumnSpacing
(int column, double spacing) final void
setColumnStretchFactor
(int column, int stretch) void
setGeometry
(QRectF rect) final void
setHorizontalSpacing
(double spacing) final void
setRowAlignment
(int row, Qt.Alignment alignment) final void
setRowAlignment
(int row, Qt.AlignmentFlag ... alignment) Overloaded function forsetRowAlignment(int, io.qt.core.Qt.Alignment)
.final void
setRowFixedHeight
(int row, double height) final void
setRowMaximumHeight
(int row, double height) final void
setRowMinimumHeight
(int row, double height) final void
setRowPreferredHeight
(int row, double height) final void
setRowSpacing
(int row, double spacing) final void
setRowStretchFactor
(int row, int stretch) final void
setSpacing
(double spacing) final void
setVerticalSpacing
(double spacing) protected QSizeF
sizeHint
(Qt.SizeHint which, QSizeF constraint) final double
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
-
QGraphicsGridLayout
- Parameters:
parent
-
-
QGraphicsGridLayout
public QGraphicsGridLayout()Overloaded constructor for
QGraphicsGridLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
.
-
-
Method Details
-
addItem
@QtUninvokable public final void addItem(QGraphicsLayoutItem item, int row, int column, Qt.Alignment alignment) - Parameters:
item
-row
-column
-alignment
-
-
addItem
@QtUninvokable public final void addItem(QGraphicsLayoutItem item, int row, int column, int rowSpan, int columnSpan, Qt.Alignment alignment) - Parameters:
item
-row
-column
-rowSpan
-columnSpan
-alignment
-
-
alignment
- Parameters:
item
-- Returns:
-
columnAlignment
- Parameters:
column
-- Returns:
-
columnCount
- Returns:
-
columnMaximumWidth
- Parameters:
column
-- Returns:
-
columnMinimumWidth
- Parameters:
column
-- Returns:
-
columnPreferredWidth
- Parameters:
column
-- Returns:
-
columnSpacing
- Parameters:
column
-- Returns:
-
columnStretchFactor
- Parameters:
column
-- Returns:
-
horizontalSpacing
- Returns:
-
itemAt
- Parameters:
row
-column
-- Returns:
-
removeItem
- Parameters:
item
-
-
rowAlignment
- Parameters:
row
-- Returns:
-
rowCount
- Returns:
-
rowMaximumHeight
- Parameters:
row
-- Returns:
-
rowMinimumHeight
- Parameters:
row
-- Returns:
-
rowPreferredHeight
- Parameters:
row
-- Returns:
-
rowSpacing
- Parameters:
row
-- Returns:
-
rowStretchFactor
- Parameters:
row
-- Returns:
-
setAlignment
- Parameters:
item
-alignment
-
-
setColumnAlignment
- Parameters:
column
-alignment
-
-
setColumnFixedWidth
- Parameters:
column
-width
-
-
setColumnMaximumWidth
- Parameters:
column
-width
-
-
setColumnMinimumWidth
- Parameters:
column
-width
-
-
setColumnPreferredWidth
- Parameters:
column
-width
-
-
setColumnSpacing
- Parameters:
column
-spacing
-
-
setColumnStretchFactor
- Parameters:
column
-stretch
-
-
setHorizontalSpacing
- Parameters:
spacing
-
-
setRowAlignment
- Parameters:
row
-alignment
-
-
setRowFixedHeight
- Parameters:
row
-height
-
-
setRowMaximumHeight
- Parameters:
row
-height
-
-
setRowMinimumHeight
- Parameters:
row
-height
-
-
setRowPreferredHeight
- Parameters:
row
-height
-
-
setRowSpacing
- Parameters:
row
-spacing
-
-
setRowStretchFactor
- Parameters:
row
-stretch
-
-
setSpacing
- Parameters:
spacing
-
-
setVerticalSpacing
- Parameters:
spacing
-
-
verticalSpacing
- 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:
-
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.AlignmentFlag ... alignment) Overloaded function for
addItem(io.qt.widgets.QGraphicsLayoutItem, 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.AlignmentFlag ... alignment) Overloaded function for
addItem(io.qt.widgets.QGraphicsLayoutItem, int, int, int, int, io.qt.core.Qt.Alignment)
. -
setAlignment
@QtUninvokable public final void setAlignment(QGraphicsLayoutItem item, Qt.AlignmentFlag ... alignment) Overloaded function for
setAlignment(io.qt.widgets.QGraphicsLayoutItem, io.qt.core.Qt.Alignment)
. -
setColumnAlignment
Overloaded function for
setColumnAlignment(int, io.qt.core.Qt.Alignment)
. -
setRowAlignment
Overloaded function for
setRowAlignment(int, io.qt.core.Qt.Alignment)
.
-