Dialog Box return values
Unsolved
General and Desktop
-
How can I make a dialog box return different values (0, 1, 2, 3), on the click of the same button depending on different conditions.
For example:on_startButton_clicked(){ if(condition 1){ dialog returns 0 } else if(condition 2){ dialog returns 1 } else if(condition 3){ dialog returns 2 } ....
-
You can't - add a custom functio to your class which returns your value so you can use it later on.