4#ifndef QGRAPHICSLAYOUTITEM_H
5#define QGRAPHICSLAYOUTITEM_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtCore/qscopedpointer.h>
9#include <QtWidgets/qsizepolicy.h>
10#include <QtGui/qevent.h>
30 QSizeF minimumSize()
const;
32 inline qreal minimumWidth()
const;
34 inline qreal minimumHeight()
const;
38 QSizeF preferredSize()
const;
40 inline qreal preferredWidth()
const;
42 inline qreal preferredHeight()
const;
46 QSizeF maximumSize()
const;
48 inline qreal maximumWidth()
const;
50 inline qreal maximumHeight()
const;
55 QRectF contentsRect()
const;
59 virtual void updateGeometry();
61 virtual bool isEmpty()
const;
65 bool isLayout()
const;
67 bool ownedByLayout()
const;
71 void setOwnedByLayout(
bool ownedByLayout);
78 QSizeF *effectiveSizeHints(
const QSizeF &constraint)
const;
89{ setMinimumSize(
QSizeF(aw, ah)); }
91{ setPreferredSize(
QSizeF(aw, ah)); }
93{ setMaximumSize(
QSizeF(aw, ah)); }
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
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,...
qreal maximumWidth() const
Returns the maximum width.
QScopedPointer< QGraphicsLayoutItemPrivate > d_ptr
void setMaximumSize(const QSizeF &size)
Sets the maximum size to size.
qreal minimumWidth() const
Returns the minimum width.
qreal preferredWidth() const
Returns the preferred width.
void setPreferredSize(const QSizeF &size)
Sets the preferred size to size.
void setMinimumSize(const QSizeF &size)
Sets the minimum size to size.
qreal maximumHeight() const
Returns the maximum height.
qreal minimumHeight() const
Returns the minimum height.
qreal preferredHeight() const
Returns the preferred height.
The QGraphicsLayout class provides the base class for all layouts in Graphics View.
\inmodule QtCore\reentrant
constexpr qreal width() const noexcept
Returns the width.
constexpr qreal height() const noexcept
Returns the height.
The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
Policy
This enum describes the various per-dimension sizing types used when constructing a QSizePolicy.
Combined button and popup list for selecting options.
#define Q_DECLARE_INTERFACE(IFace, IId)
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLdouble GLdouble GLdouble GLdouble top
GLfloat GLfloat GLfloat GLfloat h
#define QT_REQUIRE_CONFIG(feature)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent