We bake cookies in your browser for a better experience. Using this site means that you consent. Read More
The following members of class QTabWidgetare part of the Qt compatibility layer. We advise against using them in new code.
Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.
Use setTabText() instead.
Use setTabText() and setTabIcon() instead.
[signal] void QTabWidget::currentChanged(QWidget * widget)Use currentChanged(int) instead.
Note:Signal currentChanged 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){ /* ... */ });
Use currentWidget() instead.
See also setCurrentPage().
Use currentIndex() instead.
Use insertTab(index, widget, label) instead.
Use insertTab(index, widget, icon, label) instead.
Use isTabEnabled(tabWidget->indexOf(widget)) instead.
Use tabText() instead.
This function is kept only to make old code compile. This functionality is no longer supported by QTabWidget.
See also setMargin(), contentsRect(), and setContentsMargins().
Use widget() instead.
[slot] void QTabWidget::removePage(QWidget * widget)Use removeTab(indexOf(widget)) instead.
Use setTabToolTip(tabWidget->indexOf(widget), QString()) instead.
[signal] void QTabWidget::selected(const QString & tabLabel)This signal is emitted whenever a tab is selected (raised), including during the first show().
You can normally use currentChanged() instead.
[slot] void QTabWidget::setCurrentPage(int index)Use setCurrentIndex() instead.
See also currentPage().
This function is kept only to make old code compile. This functionality is no longer supported by QTabWidget.
See also margin(), contentsRect(), and setContentsMargins().
Use setTabEnabled(tabWidget->indexOf(widget), b) instead.
Use setTabIcon(tabWidget->indexOf(widget), icon) instead.
See also tabIconSet().
Use setTabText(tabWidget->indexOf(widget), label) instead.
See also tabLabel().
Use setTabToolTip(tabWidget->indexOf(widget), tip) instead.
[slot] void QTabWidget::showPage(QWidget * widget)Use setCurrentIndex(indexOf(widget)) instead.
Use tabIcon(tabWidget->indexOf(widget)) instead.
See also setTabIconSet().
Use tabText(tabWidget->indexOf(widget)) instead.
See also setTabLabel().
Use tabToolTip(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 the GNU 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.