Dynamic GUI elements
I am developing a plugin (new style) with dynamically linked GUI elements.
It has a combobox with two (or more) language options and beneath it a couple of checkboxes which are made with a for loop. These checkboxes are dependent on the selected option in the combobox. I am trying to redraw/recreate those checkboxes when a different language is selected in the combobox. In the old plugin style I did establish to add the correct new checkboxes but it did not delete the old ones. In the new style both fail.
I tried to use some methods from the auto_example but that does not work on the combobox:
self.checkbox_widget.stateChanged.connect( \ self.line_edit_widget.setEnabled)
Most elegant would be to group the checkboxes inside a groupbox and connect the groupbox to the combobox. On stateChanged in the combobox, the groupbox with the checkboxes encapsulated would be recreated.
Any ideas on this?