Results 1 to 4 of 4

Thread: How to stop event loop of QDialog in Qt4

  1. #1
    Join Date
    Jun 2008
    Posts
    21
    Thanked 1 Time in 1 Post

    Default How to stop event loop of QDialog in Qt4

    Hi,

    I am using Qt4. How to stop event loop of QDialog. i.e i need to set d->eventLoop = 0;

    Regards,
    node_ex.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to stop event loop of QDialog in Qt4

    What are you trying to achieve? Are you trying to switch a model dialog as modeless on the fly?
    J-P Nurmi

  3. #3
    Join Date
    Jun 2008
    Posts
    21
    Thanked 1 Time in 1 Post

    Default Re: How to stop event loop of QDialog in Qt4

    Hi,

    yes i want to change modal dialog as modeless while program is running . how can i do it.

    Regards,
    node_ex

  4. #4
    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: How to stop event loop of QDialog in Qt4

    Take a look at QDialog::modal. If you don't want to use any of the solutions mentioned there, then call done() on the dialog and then show() it.

Similar Threads

  1. Qt plug-in for GLib event loop based application
    By profoX in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2008, 14:27
  2. Main Thread Event loop
    By ^NyAw^ in forum Qt Programming
    Replies: 1
    Last Post: 20th March 2007, 12:10
  3. Glib event loop
    By Brandybuck in forum Qt Programming
    Replies: 2
    Last Post: 28th September 2006, 17:19
  4. Workload in a QThread blocks main application's event loop ?
    By 0xBulbizarre in forum Qt Programming
    Replies: 14
    Last Post: 9th April 2006, 21:55
  5. Replies: 4
    Last Post: 23rd January 2006, 16:51

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.