I am new to QT and GUI related programming and looking to do a 2 tier selection menu in a project. I appreciate the time taken to help.
Example: Combo box 1 has options like: 1. Screen size - Medium 2. Screen size - large and depending on that I would like to display different options for screen resolution in combo box 2.
The user can change the combo box 1 selection any number of times and box 2 should show the appropriate options.
I have tried using QComboBox.setEnabled(False) and True as was suggested in Disabling QComboBox in pyqt but it has not worked for me and I am certainly missing something.
Snippet of my code:
void interface::changeFunctionx(int index)
{
delete f;
switch(index)
{
case 0:
version = 1;
functionSely->setVisible(1);
break;
case 1:
version = 1;
//some other function call still seeing how gui works
break;
}
}