Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QWidgetItemV2 Class Reference

#include <qlayoutitem.h>

+ Inheritance diagram for QWidgetItemV2:
+ Collaboration diagram for QWidgetItemV2:

Public Member Functions

 QWidgetItemV2 (QWidget *widget)
 
 ~QWidgetItemV2 ()
 
QSize sizeHint () const override
 \reimp
 
QSize minimumSize () const override
 \reimp
 
QSize maximumSize () const override
 \reimp
 
int heightForWidth (int width) const override
 \reimp
 
- Public Member Functions inherited from QWidgetItem
 QWidgetItem (QWidget *w)
 Creates an item containing the given widget.
 
 ~QWidgetItem ()
 Destructor.
 
Qt::Orientations expandingDirections () const override
 \reimp
 
bool isEmpty () const override
 Returns true if the widget is hidden; otherwise returns false.
 
void setGeometry (const QRect &) override
 \reimp
 
QRect geometry () const override
 \reimp
 
QWidgetwidget () const override
 Returns the widget managed by this item.
 
bool hasHeightForWidth () const override
 \reimp
 
int minimumHeightForWidth (int) const override
 Returns the minimum height this widget needs for the given width, w.
 
QSizePolicy::ControlTypes controlTypes () const override
 Returns the control type associated with the widget for which this size policy applies.
 
- Public Member Functions inherited from QLayoutItem
 QLayoutItem (Qt::Alignment alignment=Qt::Alignment())
 Constructs a layout item with an alignment.
 
virtual ~QLayoutItem ()
 Destroys the QLayoutItem.
 
virtual void invalidate ()
 Invalidates any cached information in this layout item.
 
virtual QLayoutlayout ()
 If this item is a QLayout, it is returned as a QLayout; otherwise \nullptr is returned.
 
virtual QSpacerItemspacerItem ()
 If this item is a QSpacerItem, it is returned as a QSpacerItem; otherwise \nullptr is returned.
 
Qt::Alignment alignment () const
 Returns the alignment of this item.
 
void setAlignment (Qt::Alignment a)
 Sets the alignment of this item to alignment.
 

Friends

class QWidgetPrivate
 

Additional Inherited Members

- Protected Attributes inherited from QWidgetItem
QWidgetwid
 
- Protected Attributes inherited from QLayoutItem
Qt::Alignment align
 

Detailed Description

Definition at line 110 of file qlayoutitem.h.

Constructor & Destructor Documentation

◆ QWidgetItemV2()

QWidgetItemV2::QWidgetItemV2 ( QWidget * widget)
explicit

Definition at line 760 of file qlayoutitem.cpp.

References QWidgetItem::wid, and QWidgetPrivate::widgetItem.

◆ ~QWidgetItemV2()

QWidgetItemV2::~QWidgetItemV2 ( )

Definition at line 774 of file qlayoutitem.cpp.

References QObjectPrivate::get(), QWidgetItem::wid, and QWidgetPrivate::widgetItem.

+ Here is the call graph for this function:

Member Function Documentation

◆ heightForWidth()

int QWidgetItemV2::heightForWidth ( int w) const
overridevirtual

\reimp

Reimplemented from QWidgetItem.

Definition at line 837 of file qlayoutitem.cpp.

References QWidgetItem::heightForWidth(), i, and QWidgetItem::isEmpty().

+ Here is the call graph for this function:

◆ maximumSize()

QSize QWidgetItemV2::maximumSize ( ) const
overridevirtual

\reimp

Reimplemented from QWidgetItem.

Definition at line 809 of file qlayoutitem.cpp.

References QWidgetItem::isEmpty(), and QWidgetItem::maximumSize().

+ Here is the call graph for this function:

◆ minimumSize()

QSize QWidgetItemV2::minimumSize ( ) const
overridevirtual

\reimp

Reimplemented from QWidgetItem.

Definition at line 796 of file qlayoutitem.cpp.

References QWidgetItem::isEmpty(), and QWidgetItem::minimumSize().

+ Here is the call graph for this function:

◆ sizeHint()

QSize QWidgetItemV2::sizeHint ( ) const
overridevirtual

\reimp

Reimplemented from QWidgetItem.

Definition at line 783 of file qlayoutitem.cpp.

References QWidgetItem::isEmpty(), and QWidgetItem::sizeHint().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QWidgetPrivate

friend class QWidgetPrivate
friend

Definition at line 139 of file qlayoutitem.h.


The documentation for this class was generated from the following files: