Results 1 to 2 of 2

Thread: waiting for gui to close

  1. #1
    Join Date
    May 2015
    Posts
    42
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default waiting for gui to close

    Dear all,

    I am pretty much stucked over the following simple question:


    Qt Code:
    1. void forceValueInput(){
    2.  
    3. if( !value_A ){
    4. inputgui->show; // gui is subclassed QWidget
    5. }
    6.  
    7. // Question:
    8. // how to wait here for inputgui to close before next step if( !value_B ) is executed
    9. //
    10.  
    11. if( !value_B ){
    12. inputgui->show;
    13. }
    14. }
    To copy to clipboard, switch view to plain text mode 

    I'm sure there is a simple answer and I'm just the blind one. Every hint highly appreciated.

    Cheers, Lars

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: waiting for gui to close

    What you are looking for is a modal dialog.
    See QDialog::exec()
    Cheers,
    _

Similar Threads

  1. midi child does not close when I call close()
    By qlands in forum Qt Programming
    Replies: 7
    Last Post: 29th July 2011, 22:25
  2. Replies: 2
    Last Post: 17th December 2010, 19:01
  3. Waiting WebKit
    By giusepped in forum Qt Programming
    Replies: 0
    Last Post: 13th May 2009, 03:40
  4. Waiting on a thread?
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2007, 16:13
  5. Waiting for something
    By JonathanForQT4 in forum Newbie
    Replies: 20
    Last Post: 2nd May 2007, 17:35

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.