Results 1 to 4 of 4

Thread: Program hangs on processEvents method

  1. #1

    Default Program hangs on processEvents method

    HI,

    i am using qt4.4.1. When I use the method QApplication::ProcessEvents() my program hangs and the CPU usage is at 100%. When i use Qt3 everything works fine, so i assume the code is correct. Btw I am using Windows XP.

    Any ideas.

    Thanks and regards,

    Stef

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Program hangs on processEvents method

    Where do you use that method?

  3. #3

    Default Re: Program hangs on processEvents method

    I use the method quiete often in different places. but as I mentioned all works fine when I use qt3 instead. Is there a difference between the two releases reagarding this method which I didn't consider?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Program hangs on processEvents method

    There aren't any substantial changes in processEvents(), but there was a lot of changes in Qt's core. One of possible explanations is that you have some kind of infinite recursion --- you might trigger some kind of an event that causes the program flow to return to your function after you invoke processEvents(). Try setting a breakpoint on processEvents() and see whether it will be fired multiple times.

    processEvents() isn't a method that is supposed to be used quite often. Maybe you should revise your code?

Similar Threads

  1. QProcess problem (Main program hangs)
    By sincnarf in forum Qt Programming
    Replies: 5
    Last Post: 11th October 2007, 09:26
  2. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

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.