Results 1 to 4 of 4

Thread: Window not responding

  1. #1
    Join Date
    Nov 2012
    Posts
    20
    Thanked 1 Time in 1 Post

    Default Window not responding

    My qt application does some processing that can take a while. The problem of course is that after a few seconds the window says 'not responding' (i'm guessing because all the cpu time is being taken up by the processing function, leaving none to the gui).

    What is the simplest way (without messing around with threads to resolve this problem)?

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Window not responding

    See this article.

  3. #3
    Join Date
    Nov 2012
    Posts
    20
    Thanked 1 Time in 1 Post

    Default Re: Window not responding

    Ah great thanks. I'm using the process events method but I get this:

    QEventLoop: Cannot be used without QApplication

    from the application output. Seems to fix the problem though.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Window not responding

    Then you do not have a Qt program, i.e. no QApplication at all, or you are trying to create the QEventLoop before you have created your QApplication instance.

Similar Threads

  1. qt app not responding in window XP
    By snow_starzz in forum Newbie
    Replies: 4
    Last Post: 23rd August 2012, 11:20
  2. Replies: 2
    Last Post: 7th January 2012, 15:42
  3. QProgressDialogButton is not responding
    By gowen in forum Qt Programming
    Replies: 1
    Last Post: 14th August 2011, 19:13
  4. Window not responding
    By markcole in forum Qt Programming
    Replies: 10
    Last Post: 18th April 2007, 21:53

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.