The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. 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 with parent parent and flags f.
Use widget(currentIndex()) instead.
See also setCurrentItem().
Use widget() instead.
Use itemIcon() instead.
See also setItemIconSet().
Use itemText() instead.
See also setItemLabel().
Returns the width of the margin around the contents of the widget.
Use QWidget::getContentsMargins() instead.
See also setMargin() and QWidget::getContentsMargins().
Use toolbox->removeItem(toolbox->indexOf(widget)) instead.
Use setCurrentIndex(indexOf(widget)) instead.
See also currentItem().
Use setItemIcon() instead.
See also itemIconSet().
Use setItemText() instead.
See also itemLabel().
Sets the width of the margin around the contents of the widget to margin.
Use QWidget::setContentsMargins() instead.
See also margin() and QWidget::setContentsMargins().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.