MCPcopy
hub / github.com/PyQt5/PyQt / drawControl

Method drawControl

QProxyStyle/Lib/TabBarStyle.py:25–29  ·  view source on GitHub ↗
(self, element, option, painter, widget)

Source from the content-addressed store, hash-verified

23 return size
24
25 def drawControl(self, element, option, painter, widget):
26 if element == self.CE_TabBarTabLabel:
27 painter.drawText(option.rect, Qt.AlignCenter, option.text)
28 return
29 super(TabBarStyle, self).drawControl(element, option, painter, widget)

Callers 3

paintEventMethod · 0.45
paintEventMethod · 0.45
paintEventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected