MCPcopy Create free account
hub / github.com/KDAB/KDChart / __init__

Method __init__

python/examples/listview/main.py:33–40  ·  view source on GitHub ↗
(self, parent=None)

Source from the content-addressed store, hash-verified

31# pylint: disable=too-few-public-methods
32class MyListView(QListView):
33 def __init__(self, parent=None):
34 super().__init__(parent)
35
36 # Make some space for the header
37 self.setViewportMargins(0, self.fontMetrics(
38 ).height() * 2 + 4 * self.frameWidth(), 0, 0)
39 self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
40 self.setVerticalScrollMode(QAbstractItemView.ScrollPerPixel)
41
42
43class MyWidget(QWidget):

Callers

nothing calls this directly

Calls 2

heightMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected