MCPcopy Index your code
hub / github.com/PyQt5/PyQt / sizeHint

Method sizeHint

QListView/CustomWidgetSortItem.py:43–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 layout.addWidget(QPushButton('x', self))
42
43 def sizeHint(self):
44 # 决定item的高度
45 return QSize(200, 40)
46
47
48class SortFilterProxyModel(QSortFilterProxyModel):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected