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().