QGIS API Documentation
3.2.0-Bonn (bc43194)
|
The QgsTabWidget class is the same as the QTabWidget but with additional methods to temporarily hide/show tabs. More...
#include <qgstabwidget.h>
Public Member Functions | |
QgsTabWidget (QWidget *parent=nullptr) | |
Create a new QgsTabWidget with the optionally provided parent. More... | |
void | hideTab (QWidget *tab) |
Hides the tab with the given widget. More... | |
int | realTabIndex (QWidget *widget) |
Returns the index of the tab with the given widget. More... | |
void | setTabVisible (QWidget *tab, bool visible) |
Control the visibility for the tab with the given widget. More... | |
void | showTab (QWidget *tab) |
Shows the tab with the given widget. More... | |
void | tabInserted (int index) override |
Is called internally whenever a new tab has been inserted. More... | |
void | tabRemoved (int index) override |
Is called internally whenever a tab has been removed. More... | |
The QgsTabWidget class is the same as the QTabWidget but with additional methods to temporarily hide/show tabs.
Definition at line 29 of file qgstabwidget.h.
QgsTabWidget::QgsTabWidget | ( | QWidget * | parent = nullptr | ) |
Create a new QgsTabWidget with the optionally provided parent.
Definition at line 20 of file qgstabwidget.cpp.
void QgsTabWidget::hideTab | ( | QWidget * | tab | ) |
int QgsTabWidget::realTabIndex | ( | QWidget * | widget | ) |
Returns the index of the tab with the given widget.
This index is not the same as the one provided to insertTab and removeTab since these methods are not aware of hidden tabs.
Definition at line 59 of file qgstabwidget.cpp.
void QgsTabWidget::setTabVisible | ( | QWidget * | tab, |
bool | visible | ||
) |
Control the visibility for the tab with the given widget.
Definition at line 51 of file qgstabwidget.cpp.
void QgsTabWidget::showTab | ( | QWidget * | tab | ) |
|
override |
Is called internally whenever a new tab has been inserted.
Is used to keep track of currently available and visible tabs.
Definition at line 71 of file qgstabwidget.cpp.
|
override |
Is called internally whenever a tab has been removed.
Is used to keep track of currently available and visible tabs.
Definition at line 106 of file qgstabwidget.cpp.