QT++
2nd July 2013, 11:30
I want to use a comboBox but am having some problems with the signals. I want to have comboBox with the options
cat
dog
mouse
then when I click a pushButton (which I have already tested and coded) it calls the appropriate function. So the pushButton has the option of calling 3 different functions depending if the user has selected cat, dog or mouse from the comboBox. I know the code below isn't right but hopefully explains the idea.
if (comboBox == cat){
cat();
}
if (comboBox == dog){
dog();
}
cat
dog
mouse
then when I click a pushButton (which I have already tested and coded) it calls the appropriate function. So the pushButton has the option of calling 3 different functions depending if the user has selected cat, dog or mouse from the comboBox. I know the code below isn't right but hopefully explains the idea.
if (comboBox == cat){
cat();
}
if (comboBox == dog){
dog();
}