MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / minimumSize

Method minimumSize

Widgets/Layouts/FlowLayout.py:116–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 return self.minimumSize()
115
116 def minimumSize(self):
117 size = QSize()
118
119 for item in self.itemList:
120 size = size.expandedTo(item.minimumSize())
121
122 margin, _, _, _ = self.getContentsMargins()
123
124 size += QSize(2 * margin, 2 * margin)
125 return size
126
127 def doLayout(self, rect, testOnly):
128 x = rect.x()

Callers 1

sizeHintMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected