Compatibility Members for QTabWidget
The following members of class QTabWidgetare part of the Qt compatibility layer. We advise against using them in new code.
Public Functions
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 |
- 57 public functions inherited from QWidget
- 8 public functions inherited from QObject
- 8 public functions inherited from QPaintDevice
Public Slots
void | removePage(QWidget * widget) |
void | setCurrentPage(int index) |
void | showPage(QWidget * widget) |
- 1 public slot inherited from QWidget
Signals
void | currentChanged(QWidget * widget) |
void | selected(const QString & tabLabel) |
Member Function Documentation
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)
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){ /* ... */ });
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)
Use insertTab(index, widget, label) instead.
void QTabWidget::insertTab(QWidget * widget, const QIcon & icon, const QString & label, int index = -1)
Use insertTab(index, widget, icon, label) instead.
bool QTabWidget::isTabEnabled(QWidget * widget) const
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.
[slot]
void QTabWidget::removePage(QWidget * widget)
Use removeTab(indexOf(widget)) instead.
void QTabWidget::removeTabToolTip(QWidget * widget)
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().
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)
Use setTabEnabled(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)
Use setTabToolTip(tabWidget->indexOf(widget), tip) instead.
[slot]
void QTabWidget::showPage(QWidget * widget)
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
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.