
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
The following members of classQTabWidgetare part of the Qt compatibility layer. We advise against using them in new code.
| QTabWidget(QWidget * parent, const char * name, Qt::WindowFlags f = 0) | |
| void | changeTab(QWidget * widget, const QString & label) |
| void | changeTab(QWidget * widget, const QIcon & icon, const QString & label) |
| QWidget * | currentPage() const |
| int | currentPageIndex() const |
| void | insertTab(QWidget * widget, const QString & label, int index = -1) |
| void | insertTab(QWidget * widget, const QIcon & icon, const QString & label, int index = -1) |
| bool | isTabEnabled(QWidget * widget) const |
| QString | label(int index) const |
| int | margin() const |
| QWidget * | page(int index) const |
| void | removeTabToolTip(QWidget * widget) |
| void | setMargin(int margin) |
| void | setTabEnabled(QWidget * widget, bool b) |
| void | setTabIconSet(QWidget * widget, const QIcon & icon) |
| void | setTabLabel(QWidget * widget, const QString & label) |
| void | setTabToolTip(QWidget * widget, const QString & tip) |
| QIcon | tabIconSet(QWidget * widget) const |
| QString | tabLabel(QWidget * widget) const |
| QString | tabToolTip(QWidget * widget) const |
| void | removePage(QWidget * widget) |
| void | setCurrentPage(int index) |
| void | showPage(QWidget * widget) |
| void | currentChanged(QWidget * widget) |
| void | selected(const QString & tabLabel) |
Use one of the constructors that doesn't take thename argument and then usesetObjectName() instead.
UsesetTabText() instead.
UsesetTabText() andsetTabIcon() instead.
[signal]void QTabWidget::currentChanged(QWidget * widget)UsecurrentChanged(int) instead.
Note:SignalcurrentChanged is overloaded in this class. To connect to this one using the function pointer syntax, you must specify the signal type in a static cast, as shown in this example:
connect(tabWidget,static_cast<void(QTabWidget::*)(QWidget*)>(&QTabWidget::currentChanged),[=](QWidget*widget){/* ... */ });
UsecurrentWidget() instead.
See alsosetCurrentPage().
UsecurrentIndex() instead.
UseinsertTab(index, widget, label) instead.
UseinsertTab(index, widget, icon, label) instead.
UseisTabEnabled(tabWidget->indexOf(widget)) instead.
UsetabText() instead.
This function is kept only to make old code compile. This functionality is no longer supported byQTabWidget.
See alsosetMargin(),contentsRect(), andsetContentsMargins().
Usewidget() instead.
[slot]void QTabWidget::removePage(QWidget * widget)UseremoveTab(indexOf(widget)) instead.
UsesetTabToolTip(tabWidget->indexOf(widget), QString()) instead.
[signal]void QTabWidget::selected(constQString & tabLabel)This signal is emitted whenever a tab is selected (raised), including during the firstshow().
You can normally usecurrentChanged() instead.
[slot]void QTabWidget::setCurrentPage(int index)UsesetCurrentIndex() instead.
See alsocurrentPage().
This function is kept only to make old code compile. This functionality is no longer supported byQTabWidget.
See alsomargin(),contentsRect(), andsetContentsMargins().
UsesetTabEnabled(tabWidget->indexOf(widget), b) instead.
UsesetTabIcon(tabWidget->indexOf(widget), icon) instead.
See alsotabIconSet().
UsesetTabText(tabWidget->indexOf(widget), label) instead.
See alsotabLabel().
UsesetTabToolTip(tabWidget->indexOf(widget), tip) instead.
[slot]void QTabWidget::showPage(QWidget * widget)UsesetCurrentIndex(indexOf(widget)) instead.
UsetabIcon(tabWidget->indexOf(widget)) instead.
See alsosetTabIconSet().
UsetabText(tabWidget->indexOf(widget)) instead.
See alsosetTabLabel().
UsetabToolTip(tabWidget->indexOf(widget)) instead.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.