4#ifndef QGRAPHICSGRIDLAYOUT_H
5#define QGRAPHICSGRIDLAYOUT_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qgraphicsitem.h>
9#include <QtWidgets/qgraphicslayout.h>
24 Qt::Alignment
alignment = Qt::Alignment());
28 qreal horizontalSpacing()
const;
30 qreal verticalSpacing()
const;
38 void setRowStretchFactor(
int row,
int stretch);
39 int rowStretchFactor(
int row)
const;
40 void setColumnStretchFactor(
int column,
int stretch);
41 int columnStretchFactor(
int column)
const;
44 qreal rowMinimumHeight(
int row)
const;
46 qreal rowPreferredHeight(
int row)
const;
48 qreal rowMaximumHeight(
int row)
const;
60 Qt::Alignment rowAlignment(
int row)
const;
62 Qt::Alignment columnAlignment(
int column)
const;
68 int columnCount()
const;
73 int count()
const override;
94{
addItem(aitem, arow, acolumn, 1, 1, aalignment); }
The QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View.
void addItem(QGraphicsLayoutItem *item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment=Qt::Alignment())
Adds item to the grid on row and column.
The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts.
virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const =0
This pure virtual function returns the size hint for which of the QGraphicsLayoutItem,...
virtual void setGeometry(const QRectF &rect)
This virtual function sets the geometry of the QGraphicsLayoutItem to rect, which is in parent coordi...
The QGraphicsLayout class provides the base class for all layouts in Graphics View.
virtual void invalidate()
Clears any cached geometry and size hint information in the layout, and posts a \l{QEvent::LayoutRequ...
virtual int count() const =0
This pure virtual function must be reimplemented in a subclass of QGraphicsLayout to return the numbe...
virtual QGraphicsLayoutItem * itemAt(int i) const =0
This pure virtual function must be reimplemented in a subclass of QGraphicsLayout to return a pointer...
virtual void removeAt(int index)=0
This pure virtual function must be reimplemented in a subclass of QGraphicsLayout to remove the item ...
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
#define QT_REQUIRE_CONFIG(feature)
label setAlignment(Qt::AlignLeft|Qt::AlignTop)
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent