Compatibility Members for QBoxLayout

以下成员源于类 QBoxLayout are part of the Qt compatibility layer. We advise against using them in new code.

公共函数

QBoxLayout (QWidget * parent , Direction dir , int margin = 0, int spacing = -1, const char * name = 0)
QBoxLayout (QLayout * parentLayout , Direction dir , int spacing = -1, const char * name = 0)
QBoxLayout (Direction dir , int spacing , const char * name = 0)
int findWidget (QWidget * widget )

成员函数文档编制

QBoxLayout:: QBoxLayout ( QWidget * parent , Direction dir , int margin = 0, int spacing = -1, const char * name = 0)

构造新的 QBoxLayout 按方向 dir and main widget parent . parent 不可以为 0。

The margin is the number of pixels between the edge of the widget and its managed children. The spacing is the default number of pixels between neighboring children. If spacing is -1 the value of margin is used for spacing .

name is the internal object name.

另请参阅 direction ().

QBoxLayout:: QBoxLayout ( QLayout * parentLayout , Direction dir , int spacing = -1, const char * name = 0)

构造新的 QBoxLayout called name , with direction dir , and inserts it into parentLayout .

The spacing is the default number of pixels between neighboring children. If spacing is -1, the layout will inherit its parent's spacing ().

QBoxLayout:: QBoxLayout ( Direction dir , int spacing , const char * name = 0)

构造新的 QBoxLayout called name , with direction dir .

spacing is -1, the layout will inherit its parent's spacing ();否则 spacing 被使用。

You must insert this box into another layout.

int QBoxLayout:: findWidget ( QWidget * widget )

使用 indexOf ( widget ) 代替。