class KTabWidget |
|
A widget containing multiple tabs
It extends the Qt QTabWidget, providing extra optionally features such as close buttons when you hover over the icon in the tab, and also adds functionality such as responding to mouse wheel scroll events to switch the active tab. It is recommended to use KTabWidget instead of QTabWidget unless you have a good reason not to. See also the QTabWidget documentation. |
|
Creates a new tab widget.
parent - The parent widgets. flags - The Qt window flags See also QWidget. |
|
|
Returns true if calling setTitle() will resize tabs to the width of the tab bar. |
|
The close button of a widget's tab was clicked. This signal is only possible after you have called setCloseButtonEnabled( true ). |
|
|
The right mouse button was pressed over empty space besides tabbar. |
|
The right mouse button was pressed over a widget. |
|
|
|
|
|
Returns true if the close button is shown on tabs
when mouse is hovering over them.
Deprecated Use KTabWidget.isCloseButtonEnabled() instead. |
|
Returns true if the close button is shown on tabs
after a delay.
Deprecated Use KTabWidget.isCloseButtonEnabled() instead. |
|
Request to start a drag operation on the given tab. |
|
|
Returns true if the close button is shown on tabs.
@since 4.1 |
|
Returns true if the tabbar is hidden. |
|
Returns true if tab ordering with the middle mouse button has been enabled. |
|
A double left mouse button click was performed over empty space besides tabbar. |
|
A double left mouse button click was performed over the widget. |
|
|
|
A middle mouse button click was performed over empty space besides tabbar. |
|
A middle mouse button click was performed over the widget. |
|
|
|
Move a widget's tab from first to second specified index and emit signal movedTab( int, int ) afterwards. |
|
A tab was moved from first to second index. This signal is only possible after you have called setTabReorderingEnabled( true ). |
|
Received an event in the empty space beside tabbar. Usually creates a new tab. This signal is only possible after testCanDecode and positive accept result. |
|
Received an drop event on given widget's tab. This signal is only possible after testCanDecode and positive accept result. |
|
|
Removes the widget, reimplemented for internal reasons (keeping labels in sync). Deprecated since 4.0 |
|
Removes the widget, reimplemented for internal reasons (keeping labels in sync). |
|
|
If enable is true, tabs will be resized to the width of the tab bar.
Does not work reliably with "QTabWidget* foo=new KTabWidget()" and if you change tabs via the tabbar or by accessing tabs directly. |
|
If enabled, a close button is available for each tab. The
signal KTabWidget.closeRequest() is emitted, if the close button
has been clicked.
@since 4.1 |
|
If enable is true, a close button will be shown on mouse hover
over tab icons which will emit signal closeRequest( QWidget * )
when pressed.
Deprecated Use KTabWidget.setCloseButtonEnabled() instead. |
|
If delayed is true, a close button will be shown on mouse hover
over tab icons after mouse double click delay else immediately.
Deprecated Use KTabWidget.setCloseButtonEnabled() instead. |
|
If hide is true, the tabbar is hidden along with any corner widgets. |
|
If previous is true, closing the current tab activates the previous active tab instead of the one to the right. |
|
If enable is true, tab reordering with middle button will be enabled.
Note that once enabled you shouldn't rely on previously queried currentPageIndex() or indexOf( QWidget * ) values anymore. You can connect to signal movedTab(int, int) which will notify you from which index to which index a tab has been moved. |
|
Reimplemented for internal reasons. |
|
Set the tab of the given widget to color. This is simply a convenience method for QTabBar.setTabTextColor. |
|
|
Returns true if closing the current tab activates the previous actice tab instead of the one to the right. |
|
|
|
Reimplemented for internal reasons. |
|
Returns the tab color for the given widget. This is simply a convenience method for QTabBar.tabTextColor. |
|
Connect to this and set accept to true if you can and want to decode the event. |
|
|