SkinningTools.UI.tearOff.tearOffTabBar

Module Contents

Classes

TearoffTabBar

tab bar for the QTabwidget that allows the widget to be removed from the tab and parent to a new window

class SkinningTools.UI.tearOff.tearOffTabBar.TearoffTabBar(parent=None)

tab bar for the QTabwidget that allows the widget to be removed from the tab and parent to a new window

tearOff
enterEvent(self, event)

use the correct keyboard focus when the arrow is in the tab

event(self, event)

make sure that the tear off event is triggered when all conditions are met

keyPressEvent(self, event)

make sure the correct arrow cursor is present when inside the headerview

keyReleaseEvent(self, event)

make sure the correct arrow cursor is present when inside the headerview

leaveEvent(self, event)

use the correct keyboard focus when the arrow is in the tab

mouseMoveEvent(self, event)

make sure the image of the hand is still conveiying the correct action

mousePressEvent(self, event)

the mouse press event that checks if the conditions are met to detach the window it will change the control cursors image to display the action

setWest(self)

set the orientation of the tab widgets header

tabSizeHint(self, index=0)

get the size hint of the current tab this way we can make sure that when we detach the widget we have a correct size to work with

Parameters

index (int) – index if the tab

Returns

the size of the widget

Return type

Qsize