I have a issue removing widgets/layouts.
The function tries to update the panel according to what is in the dbo, when a script is inserted or deleted, I want the panel to show the changes, but it doesn't work quite right, the interface becomes a complete mess, this is my function:
After deleting/adding an element, this is how the interface looks like:
Here my code:
github/compliance_operative_control
if self.scripts_list_table is not None:
while self.scripts_list_table.count():
child = self.scripts_list_table.takeAt(0)
if child.widget() is not None:
child.widget().deleteLater()
child.widget().setParent(None)
elif child.layout() is not None:
child.layout().deleteLater()
child.layout().setParent(None)

