CopperSpice API
1.9.2
|
The QWidgetItem class is a layout item that represents a widget. More...
Public Methods | |
QWidgetItem (QWidget *widget) | |
QSizePolicy::ControlTypes | controlTypes () const override |
Qt::Orientations | expandingDirections () const override |
QRect | geometry () const override |
bool | hasHeightForWidth () const override |
int | heightForWidth (int width) const override |
bool | isEmpty () const override |
QSize | maximumSize () const override |
QSize | minimumSize () const override |
void | setGeometry (const QRect &rect) override |
QSize | sizeHint () const override |
QWidget * | widget () override |
Public Methods inherited from QLayoutItem | |
QLayoutItem (Qt::Alignment alignment=Qt::Alignment ()) | |
virtual | ~QLayoutItem () |
Qt::Alignment | alignment () const |
virtual void | invalidate () |
virtual QLayout * | layout () |
virtual int | minimumHeightForWidth (int width) const |
void | setAlignment (Qt::Alignment alignment) |
virtual QSpacerItem * | spacerItem () |
The QWidgetItem class is a layout item that represents a widget.
Normally, you do not need to use this class directly. the CopperSpice built-in layout managers provide the following functions for manipulating widgets in layouts.
Class | Methods |
---|---|
QBoxLayout | addWidget(), insertWidget(), setStretchFactor() |
QGridLayout | addWidget() |
QStackedLayout | addWidget(), insertWidget(), currentWidget(), setCurrentWidget(), widget() |
|
inlineexplicit |
Creates an item containing the given widget.
|
overridevirtual |
Returns the control type(s) for the layout item. For a QWidgetItem, the control type comes from the widget's size policy; for a QLayoutItem, the control types is derived from the layout's contents.
Reimplemented from QLayoutItem::controlTypes()
|
overridevirtual |
Implements QLayoutItem::expandingDirections()
|
overridevirtual |
Implements QLayoutItem::geometry()
|
overridevirtual |
Reimplemented from QLayoutItem::hasHeightForWidth()
|
overridevirtual |
Reimplemented from QLayoutItem::heightForWidth()
|
overridevirtual |
Returns true if the widget is hidden, otherwise returns false.
Implements QLayoutItem::isEmpty()
|
overridevirtual |
Implements QLayoutItem::maximumSize()
|
overridevirtual |
Implements QLayoutItem::minimumSize()
|
overridevirtual |
Implements QLayoutItem::setGeometry()
|
overridevirtual |
Implements QLayoutItem::sizeHint()
|
overridevirtual |
Returns the widget managed by this item.
Reimplemented from QLayoutItem::widget()