Qt:Документация 4.3.2/qtoolbox-qt3

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] 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.



[править] Открытые функции

  • 60 открытых функций унаследованных от QWidget
  • 8 открытых функций унаследованных от QObject
  • 8 открытых функций унаследованных от QPaintDevice

[править] Описание функций-членов

[править]
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 © 2007 Trolltech Trademarks
Qt 4.3.2