Results 1 to 2 of 2

Thread: Displaying windows depending on checkboxes

  1. #1
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Displaying windows depending on checkboxes

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Displaying windows depending on checkboxes

    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.

Similar Threads

  1. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 01:00
  2. Qt and windows vista
    By munna in forum General Discussion
    Replies: 8
    Last Post: 11th January 2006, 22:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.