30 #include <QGraphicsLayout>
31 #include <QGraphicsLinearLayout>
32 #include <QGraphicsWidget>
33 #include <QGraphicsView>
84 void tst_QGraphicsLayout::invalidate()
92 window->setGeometryCalls = setGeometryCalls;
97 const int depth = 100;
101 l->setContentsMargins(0,0,0,0);
104 child->setGeometryCalls = setGeometryCalls;
119 setGeometryCalls->
clear();
128 int w = int(
size.width());
132 window->setGeometryCalls =
nullptr;
136 delete setGeometryCalls;
141 #include "tst_qgraphicslayout.moc"
small capitals from c petite p scientific i
[1]
The QChar class provides a 16-bit Unicode character.
static void sendPostedEvents(QObject *receiver=nullptr, int event_type=0)
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
friend class QGraphicsWidget
static void setInstantInvalidatePropagation(bool enable)
void setMaximumSize(const QSizeF &size)
void setMinimumSize(const QSizeF &size)
The QGraphicsLinearLayout class provides a horizontal or vertical layout for managing widgets in Grap...
QGraphicsObject * parent
the parent of the item
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
void addItem(QGraphicsItem *item)
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
iterator insert(const Key &key, const T &value)
size_type count(const Key &key) const
The QObject class is the base class of all Qt objects.
The QPainter class performs low-level painting on widgets and other paint devices.
void drawLine(const QLineF &line)
void drawRoundedRect(const QRectF &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode=Qt::AbsoluteSize)
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
Q_GUI_EXPORT bool qWaitForWindowExposed(QWindow *window, int timeout=5000)
GLint GLenum GLsizei GLsizei GLsizei depth
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
#define QTEST_MAIN(TestObject)
#define QVERIFY(statement)