|
KanoopGuiQt 1.3.0
Qt GUI utility library
|
|
QTabWidget subclass that emits a per-tab context-menu signal. More...
#include <tabwidget.h>
Inheritance diagram for TabWidget:
Collaboration diagram for TabWidget:Signals | |
| void | tabCustomContextMenuRequested (int index) |
| Emitted when the user right-clicks on a tab. | |
Public Member Functions | |
| TabWidget (QWidget *parent=nullptr) | |
| Construct with an optional parent. | |
QTabWidget subclass that emits a per-tab context-menu signal.
TabWidget connects the tab bar's customContextMenuRequested signal to an internal handler that maps the click position to a tab index and re-emits tabCustomContextMenuRequested() with that index.
Definition at line 14 of file tabwidget.h.
|
explicit |
Construct with an optional parent.
| parent | Optional QWidget parent |
|
signal |
Emitted when the user right-clicks on a tab.
| index | Zero-based index of the tab that was right-clicked |