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

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

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

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

[править] Qt 3 Support Members for QTabWidget

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

[править] Открытые слоты

  • 1 открытый слот унаследованный от QWidget

[править] Сигналы


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

[править]
QTabWidget::QTabWidget ( QWidget * parent, const char * name, Qt::WindowFlags f = 0 )

Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.

[править]
void QTabWidget::changeTab ( QWidget * widget, const QString & label )

Use setTabText() instead.

[править]
void QTabWidget::changeTab ( QWidget * widget, const QIcon & icon, const QString & label )

This is an overloaded member function, provided for convenience.

Use setTabText() and setTabIcon() instead.

[править]
void QTabWidget::currentChanged ( QWidget * widget ) [signal]

This is an overloaded member function, provided for convenience.

Use currentChanged(int) instead.

[править]
QWidget * QTabWidget::currentPage () const

Use currentWidget() instead.

See also setCurrentPage().

[править]
int QTabWidget::currentPageIndex () const

Use currentIndex() instead.

[править]
void QTabWidget::insertTab ( QWidget * widget, const QString & label, int index = -1 )

This is an overloaded member function, provided for convenience.

Use insertTab(index, widget, label) instead.

[править]
void QTabWidget::insertTab ( QWidget * widget, const QIcon & icon, const QString & label, int index = -1 )

This is an overloaded member function, provided for convenience.

Use insertTab(index, widget, icon, label) instead.

[править]
bool QTabWidget::isTabEnabled ( QWidget * widget ) const

This is an overloaded member function, provided for convenience.

Use isTabEnabled(tabWidget->indexOf(widget)) instead.

[править]
QString QTabWidget::label ( int index ) const

Use tabText() instead.

[править]
int QTabWidget::margin () const

This function is kept only to make old code compile. This functionality is no longer supported by QTabWidget.

See also setMargin(), contentsRect(), and setContentsMargins().

[править]
QWidget * QTabWidget::page ( int index ) const

Use widget() instead.

[править]
void QTabWidget::removePage ( QWidget * widget ) [slot]

Use removeTab(indexOf(widget)) instead.

[править]
void QTabWidget::removeTabToolTip ( QWidget * widget )

Use setTabToolTip(tabWidget->indexOf(widget), QString()) instead.

[править]
void QTabWidget::selected ( const QString & tabLabel ) [signal]

This signal is emitted whenever a tab is selected (raised), including during the first show().

You can normally use currentChanged() instead.

[править]
void QTabWidget::setCurrentPage ( int index ) [slot]

Use setCurrentIndex() instead.

See also currentPage().

[править]
void QTabWidget::setMargin ( int margin )

This function is kept only to make old code compile. This functionality is no longer supported by QTabWidget.

See also margin(), contentsRect(), and setContentsMargins().

[править]
void QTabWidget::setTabEnabled ( QWidget * widget, bool b )

This is an overloaded member function, provided for convenience.

Use isTabEnabled(tabWidget->indexOf(widget), b) instead.

[править]
void QTabWidget::setTabIconSet ( QWidget * widget, const QIcon & icon )

Use setTabIcon(tabWidget->indexOf(widget), icon) instead.

See also tabIconSet().

[править]
void QTabWidget::setTabLabel ( QWidget * widget, const QString & label )

Use setTabText(tabWidget->indexOf(widget), label) instead.

See also tabLabel().

[править]
void QTabWidget::setTabToolTip ( QWidget * widget, const QString & tip )

This is an overloaded member function, provided for convenience.

Use setTabToolTip(tabWidget->indexOf(widget), tip) instead.

[править]
void QTabWidget::showPage ( QWidget * widget ) [slot]

Use setCurrentIndex(indexOf(widget)) instead.

[править]
QIcon QTabWidget::tabIconSet ( QWidget * widget ) const

Use tabIcon(tabWidget->indexOf(widget)) instead.

See also setTabIconSet().

[править]
QString QTabWidget::tabLabel ( QWidget * widget ) const

Use tabText(tabWidget->indexOf(widget)) instead.

See also setTabLabel().

[править]
QString QTabWidget::tabToolTip ( QWidget * widget ) const

This is an overloaded member function, provided for convenience.

Use tabToolTip(tabWidget->indexOf(widget)) instead.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2