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

Method hideChild

QListWidget/FoldWidget.py:31–34  ·  view source on GitHub ↗
(self, v)

Source from the content-addressed store, hash-verified

29 layout.addRow(self.button)
30
31 def hideChild(self, v):
32 self.button.setVisible(not v)
33 # 这里很重要 当隐藏内部子控件时 需要重新计算高度
34 self.adjustSize()
35
36 def resizeEvent(self, event):
37 # 解决item的高度问题

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected