Results 1 to 4 of 4

Thread: app.exec() never returns?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: app.exec() never returns?

    Do you create any widget?I mean, a widget that is displayed.
    Because exec() is actually a loop that exits when you call quit or exit.
    When you press the close("x") button in a window, then exit(0) is called. Therefore the event loop exits.

    So, most likely you did not create a main widget.

    If you did, then check your code in other parts of the application. Maybe an infinite loop ?

    Regards

  2. The following user says thank you to marcel for this useful post:

    stealth86 (17th July 2007)

Similar Threads

  1. Replies: 4
    Last Post: 8th July 2007, 14:26
  2. no record returns from stored procedure
    By mandal in forum Qt Programming
    Replies: 0
    Last Post: 26th April 2007, 14:45
  3. Replies: 1
    Last Post: 13th March 2007, 17:33
  4. Replies: 4
    Last Post: 27th July 2006, 11:13
  5. connect returns false
    By krivenok in forum Qt Programming
    Replies: 6
    Last Post: 21st February 2006, 20:01

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
  •  
Qt is a trademark of The Qt Company.