Results 1 to 3 of 3

Thread: What is the general mechanism behind QDialog->exec()

  1. #1
    Join Date
    Oct 2011
    Location
    Australia
    Posts
    29
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default What is the general mechanism behind QDialog->exec()

    The crux of my problem is this: I want to block on a call to some function, have the event loop work in the mean time and return from that function back into the calling function then execute the next statement in that function ... just like a normal blocking function call. I do *not* want to have to exit the function and re enter another function after some later callback (in an event driven style). I know QDialog->exec() lets you do this. For example, the caller of QDialog->exec() blocks on the call. Then inside the function QDialog->exec() you can do a bunch of stuff setup event driven signal and slots code and have the calling function return later by calling accept(), reject, or done() in some slot of the QDialog. I want this behavious of QDIalog without the QDialog but I cant find any description of it. Can some please point me in the right direction?

    Thanks,

    33333.

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: What is the general mechanism behind QDialog->exec()


  3. #3
    Join Date
    Oct 2011
    Location
    Australia
    Posts
    29
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: What is the general mechanism behind QDialog->exec()

    Ahhh, precisely. Thanks nish.

Similar Threads

  1. QTcpsocket and QDialog::exec()
    By timewolf in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2011, 08:27
  2. Replies: 9
    Last Post: 25th March 2011, 21:22
  3. QDialog.exec() exiting without calling QDialog::accept()
    By doggrant in forum Qt Programming
    Replies: 3
    Last Post: 2nd February 2011, 11:35
  4. QDialog problem with exec()
    By nomadscarecrow in forum Qt Programming
    Replies: 3
    Last Post: 23rd April 2010, 18:40
  5. Replies: 5
    Last Post: 25th March 2010, 12:14

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.