DtkWidget 5.6.0.2
DTK Widget module
|
The DHBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::LeftToRight. 更多...
Public 成员函数 | |
DHBoxWidget (QWidget *parent=0) | |
DHBoxWidget的构造函数 更多... | |
![]() | |
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 DHBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::LeftToRight.
\inmodule dtkwidget
是设置成水平方向的DBoxWidget
|
explicit |
DHBoxWidget的构造函数
DHBoxWidget::DHBoxWidget constructs an instance of DHBoxWidget.
parent is passed to DBoxWidget constructor.