KTabWidget Class Reference
from PyKDE4.kdeui import *
Inherits: QTabWidget → QWidget → QObject
Detailed Description
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.
"KDE Tab Widget"
Signals | |
closeRequest (QWidget a0) | |
contextMenu (QWidget a0, QPoint a1) | |
initiateDrag (QWidget a0) | |
mouseDoubleClick () | |
mouseDoubleClick (QWidget a0) | |
mouseMiddleClick () | |
mouseMiddleClick (QWidget a0) | |
movedTab (int a0, int a1) | |
receivedDropEvent (QDropEvent a0) | |
receivedDropEvent (QWidget a0, QDropEvent a1) | |
Methods | |
__init__ (self, QWidget parent=0, Qt::WFlags flags=0) | |
bool | automaticResizeTabs (self) |
currentChanged (self, int a0) | |
dragEnterEvent (self, QDragEnterEvent a0) | |
dragMoveEvent (self, QDragMoveEvent a0) | |
dropEvent (self, QDropEvent a0) | |
bool | hoverCloseButton (self) |
bool | hoverCloseButtonDelayed (self) |
bool | isCloseButtonEnabled (self) |
bool | isTabBarHidden (self) |
bool | isTabReorderingEnabled (self) |
mouseDoubleClickEvent (self, QMouseEvent a0) | |
mousePressEvent (self, QMouseEvent a0) | |
mouseReleaseEvent (self, QMouseEvent a0) | |
moveTab (self, int a0, int a1) | |
removePage (self, QWidget w) | |
removeTab (self, int index) | |
resizeEvent (self, QResizeEvent a0) | |
setAutomaticResizeTabs (self, bool enable) | |
setCloseButtonEnabled (self, bool a0) | |
setHoverCloseButton (self, bool enable) | |
setHoverCloseButtonDelayed (self, bool delayed) | |
setTabBarHidden (self, bool hide) | |
setTabCloseActivatePrevious (self, bool previous) | |
setTabReorderingEnabled (self, bool enable) | |
setTabText (self, int a0, QString a1) | |
setTabTextColor (self, int index, QColor color) | |
int | tabBarWidthForMaxChars (self, int a0) |
bool | tabCloseActivatePrevious (self) |
tabInserted (self, int a0) | |
tabRemoved (self, int a0) | |
QString | tabText (self, int a0) |
QColor | tabTextColor (self, int index) |
wheelDelta (self, int a0) | |
wheelEvent (self, QWheelEvent a0) |
Signal Documentation
closeRequest | ( | QWidget | a0 | |
) |
The close button of a widget's tab was clicked. This signal is only possible after you have called setCloseButtonEnabled( true ).
- Signal syntax:
QObject.connect(source, SIGNAL("closeRequest(QWidget*)"), target_slot)
contextMenu | ( | QWidget | a0, | |
QPoint | a1 | |||
) |
The right mouse button was pressed over a widget.
- Signal syntax:
QObject.connect(source, SIGNAL("contextMenu(QWidget*, const QPoint&)"), target_slot)
initiateDrag | ( | QWidget | a0 | |
) |
Request to start a drag operation on the given tab.
- Signal syntax:
QObject.connect(source, SIGNAL("initiateDrag(QWidget*)"), target_slot)
mouseDoubleClick | ( | ) |
A double left mouse button click was performed over the widget. The signal is emitted on the second press of the mouse button, before the release.
- Signal syntax:
QObject.connect(source, SIGNAL("mouseDoubleClick()"), target_slot)
mouseDoubleClick | ( | QWidget | a0 | |
) |
A double left mouse button click was performed over the widget. The signal is emitted on the second press of the mouse button, before the release.
- Signal syntax:
QObject.connect(source, SIGNAL("mouseDoubleClick(QWidget*)"), target_slot)
mouseMiddleClick | ( | ) |
A middle mouse button click was performed over the widget. The signal is emitted on the release of the mouse button.
- Signal syntax:
QObject.connect(source, SIGNAL("mouseMiddleClick()"), target_slot)
mouseMiddleClick | ( | QWidget | a0 | |
) |
A middle mouse button click was performed over the widget. The signal is emitted on the release of the mouse button.
- Signal syntax:
QObject.connect(source, SIGNAL("mouseMiddleClick(QWidget*)"), target_slot)
movedTab | ( | int | a0, | |
int | a1 | |||
) |
A tab was moved from first to second index. This signal is only possible after you have called setTabReorderingEnabled( true ).
- Signal syntax:
QObject.connect(source, SIGNAL("movedTab(int, int)"), target_slot)
receivedDropEvent | ( | QDropEvent | a0 | |
) |
Received an drop event on given widget's tab. This signal is only possible after testCanDecode and positive accept result.
- Signal syntax:
QObject.connect(source, SIGNAL("receivedDropEvent(QDropEvent*)"), target_slot)
receivedDropEvent | ( | QWidget | a0, | |
QDropEvent | a1 | |||
) |
Received an drop event on given widget's tab. This signal is only possible after testCanDecode and positive accept result.
- Signal syntax:
QObject.connect(source, SIGNAL("receivedDropEvent(QWidget*, QDropEvent*)"), target_slot)
Method Documentation
__init__ | ( | self, | ||
QWidget | parent=0, | |||
Qt::WFlags | flags=0 | |||
) |
Creates a new tab widget.
- Parameters: