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
QBoxLayoutItem Struct Reference
+ Collaboration diagram for QBoxLayoutItem:

Public Member Functions

 QBoxLayoutItem (QLayoutItem *it, int stretch_=0)
 
 ~QBoxLayoutItem ()
 
int hfw (int w)
 
int mhfw (int w)
 
int hStretch ()
 
int vStretch ()
 

Public Attributes

QLayoutItemitem
 
int stretch
 
bool magic
 

Detailed Description

Definition at line 15 of file qboxlayout.cpp.

Constructor & Destructor Documentation

◆ QBoxLayoutItem()

QBoxLayoutItem::QBoxLayoutItem ( QLayoutItem * it,
int stretch_ = 0 )
inline

Definition at line 17 of file qboxlayout.cpp.

◆ ~QBoxLayoutItem()

QBoxLayoutItem::~QBoxLayoutItem ( )
inline

Definition at line 19 of file qboxlayout.cpp.

References item.

Member Function Documentation

◆ hfw()

int QBoxLayoutItem::hfw ( int w)
inline

Definition at line 21 of file qboxlayout.cpp.

References QLayoutItem::hasHeightForWidth(), QLayoutItem::heightForWidth(), item, and QLayoutItem::sizeHint().

Referenced by QBoxLayoutPrivate::calcHfw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hStretch()

int QBoxLayoutItem::hStretch ( )
inline

Definition at line 35 of file qboxlayout.cpp.

References item, stretch, and QLayoutItem::widget().

+ Here is the call graph for this function:

◆ mhfw()

int QBoxLayoutItem::mhfw ( int w)
inline

Definition at line 28 of file qboxlayout.cpp.

References QLayoutItem::hasHeightForWidth(), item, QLayoutItem::minimumHeightForWidth(), and QLayoutItem::minimumSize().

+ Here is the call graph for this function:

◆ vStretch()

int QBoxLayoutItem::vStretch ( )
inline

Definition at line 42 of file qboxlayout.cpp.

References item, stretch, and QLayoutItem::widget().

+ Here is the call graph for this function:

Member Data Documentation

◆ item

◆ magic

bool QBoxLayoutItem::magic

Definition at line 52 of file qboxlayout.cpp.

◆ stretch

int QBoxLayoutItem::stretch

The documentation for this struct was generated from the following file: