Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

Qt 3 Support Members for QToolBox

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.

Public Functions


Member Function Documentation

QToolBox::QToolBox ( QWidget * parent, const char * name, Qt::WindowFlags f = 0 )

Constructs a toolbox called name with parent parent and flags f.

QWidget * QToolBox::currentItem () const

Use widget(currentIndex()) instead.

See also setCurrentItem().

QWidget * QToolBox::item ( int index ) const

Use widget() instead.

QIcon QToolBox::itemIconSet ( int index ) const

Use itemIcon() instead.

See also setItemIconSet().

QString QToolBox::itemLabel ( int index ) const

Use itemText() instead.

See also setItemLabel().

int QToolBox::margin () const

Returns the with of the the margin around the contents of the widget.

Use QWidget::getContentsMargins() instead.

See also setMargin() and QWidget::getContentsMargins().

int QToolBox::removeItem ( QWidget * widget )

This is an overloaded member function, provided for convenience.

Use toolbox->removeItem(toolbox->indexOf(widget)) instead.

void QToolBox::setCurrentItem ( QWidget * widget )

Use setCurrentIndex(indexOf(widget)) instead.

See also currentItem().

void QToolBox::setItemIconSet ( int index, const QIcon & icon )

Use setItemIcon() instead.

See also itemIconSet().

void QToolBox::setItemLabel ( int index, const QString & text )

Use setItemText() instead.

See also itemLabel().

void QToolBox::setMargin ( int margin )

Sets the width of the margin around the contents of the widget to margin.

Use QWidget::setContentsMargins() instead.

See also margin() and QWidget::setContentsMargins().


Copyright © 2008 Nokia Trademarks
Qt 4.4.3