QtGui/qgraphicslayoutitem.h Source File
Go to the documentation of this file.
42 #ifndef QGRAPHICSLAYOUTITEM_H
43 #define QGRAPHICSLAYOUTITEM_H
55 #if !defined(QT_NO_GRAPHICSVIEW) || (QT_EDITION & QT_MODULE_GRAPHICSVIEW) != QT_MODULE_GRAPHICSVIEW
57 class QGraphicsLayoutItemPrivate;
70 inline void setMinimumSize(qreal
w, qreal
h);
71 QSizeF minimumSize()
const;
72 void setMinimumWidth(qreal
width);
73 inline qreal minimumWidth()
const;
74 void setMinimumHeight(qreal
height);
75 inline qreal minimumHeight()
const;
77 void setPreferredSize(
const QSizeF &size);
78 inline void setPreferredSize(qreal w, qreal h);
79 QSizeF preferredSize()
const;
80 void setPreferredWidth(qreal width);
81 inline qreal preferredWidth()
const;
82 void setPreferredHeight(qreal height);
83 inline qreal preferredHeight()
const;
85 void setMaximumSize(
const QSizeF &size);
86 inline void setMaximumSize(qreal w, qreal h);
87 QSizeF maximumSize()
const;
88 void setMaximumWidth(qreal width);
89 inline qreal maximumWidth()
const;
90 void setMaximumHeight(qreal height);
91 inline qreal maximumHeight()
const;
93 virtual void setGeometry(
const QRectF &rect);
95 virtual void getContentsMargins(qreal *
left, qreal *top, qreal *
right, qreal *bottom)
const;
96 QRectF contentsRect()
const;
100 virtual void updateGeometry();
105 bool isLayout()
const;
108 bool ownedByLayout()
const;
112 void setOwnedByLayout(
bool ownedByLayout);
119 QSizeF *effectiveSizeHints(
const QSizeF &constraint)
const;
127 inline void QGraphicsLayoutItem::setMinimumSize(qreal aw, qreal ah)
128 { setMinimumSize(
QSizeF(aw, ah)); }
130 { setPreferredSize(
QSizeF(aw, ah)); }
132 { setMaximumSize(
QSizeF(aw, ah)); }
qreal preferredWidth() const
qreal preferredHeight() const
QScopedPointer< QGraphicsLayoutItemPrivate > d_ptr
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
void setMaximumSize(const QSizeF &size)
qreal maximumWidth() const
#define QT_BEGIN_NAMESPACE
GLenum GLsizei GLsizei height
void setPreferredSize(const QSizeF &size)
qreal maximumHeight() const
int int int int int int h
qreal minimumHeight() const
GLubyte GLubyte GLubyte GLubyte w
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
qreal minimumWidth() const