DtkWidget 5.6.0.2
DTK Widget module
|
The DVBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::TopToBottom. 更多...
Public 成员函数 | |
DVBoxWidget (QWidget *parent=0) | |
DVBoxWidget的构造函数 更多... | |
![]() | |
DBoxWidget (QBoxLayout::Direction direction, QWidget *parent=0) | |
DBoxWidget的构造函数. 更多... | |
QBoxLayout::Direction | direction () const |
QBoxLayout * | layout () const |
这个属性会返回当前使用的布局对象 更多... | |
void | addWidget (QWidget *widget) |
调用QBoxLayout的addWidget方法将QWidget添加到布局中 更多... | |
QSize | sizeHint () const Q_DECL_OVERRIDE |
DBoxWidget::sizeHint reimplemented from QWidget::sizeHint(). 更多... | |
额外继承的成员函数 | |
![]() | |
void | setDirection (QBoxLayout::Direction direction) |
设置QBoxLayout当前的方向 更多... | |
![]() | |
void | sizeChanged (QSize size) |
void | directionChanged (QBoxLayout::Direction direction) |
![]() | |
virtual void | updateSize (const QSize &size) |
当方向是QBoxLayout::TopToBottom或者QBoxLayout::BottomToTop时, 固定高度将使用传入的高度,并设置最小宽度为传入的宽度。 否则将使用传入的宽度当做固定宽度,高度为最小高度。 size | |
bool | event (QEvent *ee) Q_DECL_OVERRIDE |
![]() | |
QBoxLayout::Direction | direction |
This property holds the direction of the internal QBoxLayout. 更多... | |
The DVBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::TopToBottom.
\inmodule dtkwidget
是设置成垂直方向的DBoxWidget
|
explicit |
DVBoxWidget的构造函数
DVBoxWidget::DVBoxWidget constructs an instance of DVBoxWidget.
parent is passed to DBoxWidget constructor.