以下成員源於類 QToolBox are part of the Qt compatibility layer. We advise against using them in new code.
| QToolBox (QWidget * parent , const char * name , Qt::WindowFlags f = 0) | |
| QWidget * | currentItem () const |
| QWidget * | item (int index ) const |
| QIcon | itemIconSet (int index ) const |
| QString | itemLabel (int index ) const |
| int | margin () const |
| int | removeItem (QWidget * widget ) |
| void | setCurrentItem (QWidget * widget ) |
| void | setItemIconSet (int index , const QIcon & icon ) |
| void | setItemLabel (int index , const QString & text ) |
| void | setMargin (int margin ) |
Constructs a toolbox called name 采用父級 parent and flags f .
Use widget( currentIndex ()) instead.
另請參閱 setCurrentItem ().
使用 widget () 代替。
使用 itemIcon () 代替。
另請參閱 setItemIconSet ().
使用 itemText () 代替。
另請參閱 setItemLabel ().
Returns the width of the margin around the contents of the widget.
使用 QWidget::getContentsMargins () 代替。
另請參閱 setMargin () 和 QWidget::getContentsMargins ().
Use toolbox-> removeItem (toolbox-> indexOf (widget)) instead.
使用 setCurrentIndex ( indexOf (widget)) instead.
另請參閱 currentItem ().
使用 setItemIcon () 代替。
另請參閱 itemIconSet ().
使用 setItemText () 代替。
另請參閱 itemLabel ().
Sets the width of the margin around the contents of the widget to margin .
使用 QWidget::setContentsMargins () 代替。
另請參閱 margin () 和 QWidget::setContentsMargins ().