42 #ifndef QGRAPHICSLINEARLAYOUT_H 43 #define QGRAPHICSLINEARLAYOUT_H 45 #include <QtGui/qgraphicsitem.h> 46 #include <QtGui/qgraphicslayout.h> 54 #if !defined(QT_NO_GRAPHICSVIEW) || (QT_EDITION & QT_MODULE_GRAPHICSVIEW) != QT_MODULE_GRAPHICSVIEW 69 inline void addStretch(
int stretch = 1) { insertStretch(-1, stretch); }
72 void insertStretch(
int index,
int stretch = 1);
77 void setSpacing(
qreal spacing);
78 qreal spacing()
const;
79 void setItemSpacing(
int index,
qreal spacing);
80 qreal itemSpacing(
int index)
const;
97 Q5SizePolicy::ControlTypes controlTypes(
LayoutSide side)
const;
100 void dump(
int indent = 0)
const;
virtual void removeAt(int index)=0
This pure virtual function must be reimplemented in a subclass of QGraphicsLayout to remove the item ...
void addItem(QGraphicsLayoutItem *item)
This convenience function is equivalent to calling insertItem(-1, item).
virtual void setGeometry(const QRectF &rect)
This virtual function sets the geometry of the QGraphicsLayoutItem to rect, which is in parent coordi...
#define QT_END_NAMESPACE
This macro expands to.
void addStretch(int stretch=1)
This convenience function is equivalent to calling insertStretch(-1, stretch).
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QSizeF class defines the size of a two-dimensional object using floating point precision...
virtual void invalidate()
Clears any cached geometry and size hint information in the layout, and posts a LayoutRequest event t...
The QGraphicsLinearLayout class provides a horizontal or vertical layout for managing widgets in Grap...
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, using the width or height of constraint to constrain the output.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts...
virtual int count() const =0
This pure virtual function must be reimplemented in a subclass of QGraphicsLayout to return the numbe...
The QGraphicsLayout class provides the base class for all layouts in Graphics View.
static QString dump(const QByteArray &)
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
virtual QGraphicsLayoutItem * itemAt(int i) const =0
This pure virtual function must be reimplemented in a subclass of QGraphicsLayout to return a pointer...