thank you for your reply!
yes, i've read the docs about hide/show, but unfortunately it doesn't work..)
the only working solution is:
hide all stuff:
for i in range(self.gridLayout.count() - 1, -1, -1):
x = self.gridLayout.itemAt(i).widget()
if x.objectName() != 'GL_LS':
self.gridLayout.removeWidget(x)
x.setParent(None)
for i in range(self.gridLayout.count() - 1, -1, -1):
x = self.gridLayout.itemAt(i).widget()
if x.objectName() != 'GL_LS':
self.gridLayout.removeWidget(x)
x.setParent(None)
To copy to clipboard, switch view to plain text mode
show:
self.gridLayout.addWidget(self.label1, 0, 0, 1, 2)
.... (adding all other widgets that were hidden)...
for i in range(self.gridLayout.count() - 1, -1, -1):
x = self.gridLayout.itemAt(i).widget()
x.setParent(self)
self.gridLayout.addWidget(self.label1, 0, 0, 1, 2)
.... (adding all other widgets that were hidden)...
for i in range(self.gridLayout.count() - 1, -1, -1):
x = self.gridLayout.itemAt(i).widget()
x.setParent(self)
To copy to clipboard, switch view to plain text mode
Bookmarks