Signals
void | index_changed(int old_index, int new_index) |
void | tab_closed(int index) |
Member Function Documentation
QLTabBar(QWidget* parent = nullptr)
Constructs a tab bar.
Creates a tab labeled with an icon and text.
void add_tab(const QString& text)
Creates a tab labeled with text.
void current_index() const
Returns the current index of the tab bar.
void index_changed(int old_index, int new_index)
Signal
This signal is emitted when the current index changes.
void set_current_index(int index)
Sets the current index of the tab bar.
void tab_closed(int index)
Signal
This signal is emitted when a tab is closed.