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.

Qt Code:
  1. if (comboBox == cat){
  2. cat();
  3. }
  4.  
  5. if (comboBox == dog){
  6. dog();
  7. }
To copy to clipboard, switch view to plain text mode