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
QDockWidgetItem Class Reference

#include <qdockwidget_p.h>

+ Inheritance diagram for QDockWidgetItem:
+ Collaboration diagram for QDockWidgetItem:

Public Member Functions

 QDockWidgetItem (QDockWidget *dockWidget)
 
QSize minimumSize () const override
 Implemented in subclasses to return the minimum size of this item.
 
QSize maximumSize () const override
 Implemented in subclasses to return the maximum size of this item.
 
QSize sizeHint () const override
 Implemented in subclasses to return the preferred size of this item.
 
- Public Member Functions inherited from QWidgetItem
 QWidgetItem (QWidget *w)
 Creates an item containing the given widget.
 
 ~QWidgetItem ()
 Destructor.
 
QSize sizeHint () const override
 \reimp
 
QSize minimumSize () const override
 \reimp
 
QSize maximumSize () const override
 \reimp
 
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 heightForWidth (int) 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.
 

Additional Inherited Members

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

Detailed Description

Definition at line 160 of file qdockwidget_p.h.

Constructor & Destructor Documentation

◆ QDockWidgetItem()

QDockWidgetItem::QDockWidgetItem ( QDockWidget * dockWidget)

Definition at line 566 of file qdockwidget.cpp.

Member Function Documentation

◆ maximumSize()

QSize QDockWidgetItem::maximumSize ( ) const
overridevirtual

Implemented in subclasses to return the maximum size of this item.

Implements QLayoutItem.

Definition at line 579 of file qdockwidget.cpp.

References item, QWIDGETSIZE_MAX, and QDockWidgetLayout::sizeFromContent().

+ Here is the call graph for this function:

◆ minimumSize()

QSize QDockWidgetItem::minimumSize ( ) const
overridevirtual

Implemented in subclasses to return the minimum size of this item.

Implements QLayoutItem.

Definition at line 571 of file qdockwidget.cpp.

References item, and QDockWidgetLayout::sizeFromContent().

+ Here is the call graph for this function:

◆ sizeHint()

QSize QDockWidgetItem::sizeHint ( ) const
overridevirtual

Implemented in subclasses to return the preferred size of this item.

Implements QLayoutItem.

Definition at line 589 of file qdockwidget.cpp.

References item, QDockWidgetLayout::sizeFromContent(), and QWidgetItem::sizeHint().

+ Here is the call graph for this function:

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