QTabBar Class Reference
[QtGui module]
Inherits QWidget.
Types
- enum ButtonPosition { LeftSide, RightSide }
- enum SelectionBehavior { SelectLeftTab, SelectRightTab, SelectPreviousTab }
- enum Shape { RoundedNorth, RoundedSouth, RoundedWest, RoundedEast, ..., TriangularEast }
Methods
- __init__ (self, QWidget parent = None)
- int addTab (self, QString)
- int addTab (self, QIcon, QString)
- changeEvent (self, QEvent)
- int count (self)
- int currentIndex (self)
- bool documentMode (self)
- bool drawBase (self)
- Qt.TextElideMode elideMode (self)
- bool event (self, QEvent)
- bool expanding (self)
- hideEvent (self, QHideEvent)
- QSize iconSize (self)
- initStyleOption (self, QStyleOptionTab, int)
- int insertTab (self, int, QString)
- int insertTab (self, int, QIcon, QString)
- bool isMovable (self)
- bool isTabEnabled (self, int)
- keyPressEvent (self, QKeyEvent)
- QSize minimumSizeHint (self)
- mouseMoveEvent (self, QMouseEvent)
- mousePressEvent (self, QMouseEvent)
- mouseReleaseEvent (self, QMouseEvent)
- moveTab (self, int, int)
- paintEvent (self, QPaintEvent)
- removeTab (self, int)
- resizeEvent (self, QResizeEvent)
- SelectionBehavior selectionBehaviorOnRemove (self)
- setCurrentIndex (self, int)
- setDocumentMode (self, bool)
- setDrawBase (self, bool)
- setElideMode (self, Qt.TextElideMode)
- setExpanding (self, bool)
- setIconSize (self, QSize)
- setMovable (self, bool)
- setSelectionBehaviorOnRemove (self, SelectionBehavior)
- setShape (self, Shape)
- setTabButton (self, int, ButtonPosition, QWidget)
- setTabData (self, int, QVariant)
- setTabEnabled (self, int, bool)
- setTabIcon (self, int, QIcon)
- setTabsClosable (self, bool)
- setTabText (self, int, QString)
- setTabTextColor (self, int, QColor)
- setTabToolTip (self, int, QString)
- setTabWhatsThis (self, int, QString)
- setUsesScrollButtons (self, bool)
- Shape shape (self)
- showEvent (self, QShowEvent)
- QSize sizeHint (self)
- int tabAt (self, QPoint)
- QWidget tabButton (self, int, ButtonPosition)
- QVariant tabData (self, int)
- QIcon tabIcon (self, int)
- tabInserted (self, int)
- tabLayoutChange (self)
- QRect tabRect (self, int)
- tabRemoved (self, int)
- bool tabsClosable (self)
- QSize tabSizeHint (self, int)
- QString tabText (self, int)
- QColor tabTextColor (self, int)
- QString tabToolTip (self, int)
- QString tabWhatsThis (self, int)
- bool usesScrollButtons (self)
- wheelEvent (self, QWheelEvent)
Special Methods
Qt Signals
Detailed Description
Type Documentation
QTabBar.ButtonPosition
QTabBar.SelectionBehavior
QTabBar.Shape
Method Documentation
QTabBar.__init__ (self, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
int QTabBar.addTab (self, QString)
int QTabBar.addTab (self, QIcon, QString)
QTabBar.changeEvent (self, QEvent)
int QTabBar.count (self)
int QTabBar.currentIndex (self)
bool QTabBar.documentMode (self)
bool QTabBar.drawBase (self)
bool QTabBar.event (self, QEvent)
bool QTabBar.expanding (self)
QTabBar.hideEvent (self, QHideEvent)
QSize QTabBar.iconSize (self)
QTabBar.initStyleOption (self, QStyleOptionTab, int)
int QTabBar.insertTab (self, int, QString)
int QTabBar.insertTab (self, int, QIcon, QString)
bool QTabBar.isMovable (self)
bool QTabBar.isTabEnabled (self, int)
QTabBar.keyPressEvent (self, QKeyEvent)
QSize QTabBar.minimumSizeHint (self)
QTabBar.mouseMoveEvent (self, QMouseEvent)
QTabBar.mousePressEvent (self, QMouseEvent)
QTabBar.mouseReleaseEvent (self, QMouseEvent)
QTabBar.moveTab (self, int, int)
QTabBar.paintEvent (self, QPaintEvent)
QTabBar.removeTab (self, int)
QTabBar.resizeEvent (self, QResizeEvent)
SelectionBehavior QTabBar.selectionBehaviorOnRemove (self)
QTabBar.setCurrentIndex (self, int)
This method is also a Qt slot with the C++ signature void setCurrentIndex(int).
QTabBar.setDocumentMode (self, bool)
QTabBar.setDrawBase (self, bool)
QTabBar.setExpanding (self, bool)
QTabBar.setIconSize (self, QSize)
QTabBar.setMovable (self, bool)
QTabBar.setSelectionBehaviorOnRemove (self, SelectionBehavior)
QTabBar.setShape (self, Shape)
The QWidget argument has it's ownership transferred to Qt.
QTabBar.setTabData (self, int, QVariant)
QTabBar.setTabEnabled (self, int, bool)
QTabBar.setTabIcon (self, int, QIcon)
QTabBar.setTabsClosable (self, bool)
QTabBar.setTabText (self, int, QString)
QTabBar.setTabTextColor (self, int, QColor)
QTabBar.setTabToolTip (self, int, QString)
QTabBar.setTabWhatsThis (self, int, QString)
QTabBar.setUsesScrollButtons (self, bool)
Shape QTabBar.shape (self)
QTabBar.showEvent (self, QShowEvent)
QSize QTabBar.sizeHint (self)
int QTabBar.tabAt (self, QPoint)
QVariant QTabBar.tabData (self, int)
QIcon QTabBar.tabIcon (self, int)
QTabBar.tabInserted (self, int)
QTabBar.tabLayoutChange (self)
QRect QTabBar.tabRect (self, int)
QTabBar.tabRemoved (self, int)
bool QTabBar.tabsClosable (self)
QSize QTabBar.tabSizeHint (self, int)
QString QTabBar.tabText (self, int)
QColor QTabBar.tabTextColor (self, int)
QString QTabBar.tabToolTip (self, int)
QString QTabBar.tabWhatsThis (self, int)
bool QTabBar.usesScrollButtons (self)
QTabBar.wheelEvent (self, QWheelEvent)
QTabBar.__len__ (self)
Qt Signal Documentation
void currentChanged (int)
This is the default overload of this signal.
void tabCloseRequested (int)
This is the default overload of this signal.
void tabMoved (int,int)
This is the default overload of this signal.