45 #include <QtGui/QLayout> 62 Qt::Alignment labelAlignment;
63 Qt::Alignment formAlignment;
64 int horizontalSpacing;
93 void setLabelAlignment(Qt::Alignment alignment);
94 Qt::Alignment labelAlignment()
const;
95 void setFormAlignment(Qt::Alignment alignment);
96 Qt::Alignment formAlignment()
const;
98 void setHorizontalSpacing(
int spacing);
99 int horizontalSpacing()
const;
100 void setVerticalSpacing(
int spacing);
101 int verticalSpacing()
const;
115 void insertRow(
int row,
const QString &labelText,
QWidget *field);
116 void insertRow(
int row,
const QString &labelText,
QLayout *field);
125 void getItemPosition(
int index,
int *rowPtr,
ItemRole *rolePtr)
const;
146 int rowCount()
const;
153 void resetFieldGrowthPolicy();
154 void resetRowWrapPolicy();
155 void resetLabelAlignment();
156 void resetFormAlignment();
virtual QLayoutItem * itemAt(int index) const =0
Must be implemented in subclasses to return the layout item at index.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
virtual void addItem(QLayoutItem *)=0
Implemented in subclasses to add an item.
virtual void setGeometry(const QRect &)
Reimplemented Function
void invalidate()
Reimplemented Function
The QString class provides a Unicode character string.
virtual bool hasHeightForWidth() const
Returns true if this layout's preferred height depends on its width; otherwise returns false...
Qt::Orientations expandingDirections() const
Returns whether this layout can make use of more space than sizeHint().
virtual QLayoutItem * takeAt(int index)=0
Must be implemented in subclasses to remove the layout item at index from the layout, and return the item.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QLayoutItem class provides an abstract item that a QLayout manipulates.
The QLayout class is the base class of geometry managers.
virtual int count() const =0
Must be implemented in subclasses to return the number of items in the layout.
virtual QSize sizeHint() const =0
Implemented in subclasses to return the preferred size of this item.
The QRect class defines a rectangle in the plane using integer precision.
static QString dump(const QByteArray &)
QSize minimumSize() const
Returns the minimum size of this layout.
virtual int heightForWidth(int) const
Returns the preferred height for this layout item, given the width w.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)