Qt:Документация 4.3.2/qtoolbox-qt3
Материал из Wiki.crossplatform.ru
![]() | Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
[править] 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.
[править] Открытые функции
- 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 )
- 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
|