MCPcopy Create free account
hub / github.com/PyQt5/PyQt / sizeHint

Method sizeHint

QListView/CustomWidgetItem.py:35–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 layout.addWidget(QPushButton('x', self))
34
35 def sizeHint(self):
36 # 决定item的高度
37 return QSize(200, 40)
38
39
40class ListView(QListView):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected