PDA

View Full Version : Displaying windows depending on checkboxes



Salazaar
12th May 2007, 19:39
Hi. How can I do that: I have got a dialog, few checkboxes in it, and ok, cancel buttons. So how can I do that: If X checkbox is checked, and user clicks ok button it displays A window. If Y checkbox is checked and user clicks ok button, the B windows is displayed. How can I do that in code?

wysota
12th May 2007, 19:42
Connect a custom slot to the clicked() signal of the "ok" button (or act upon result of QDialog::exec()) and in the slot check the "checked" property of the checkbuttons in question and create appropriate windows based on that.