Results 1 to 3 of 3

Thread: No instant response in while(1) loop?

  1. #1
    Join Date
    Mar 2010
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post No instant response in while(1) loop?

    Hi, everybody!
    I write a piece of code like this:
    1. press hotkey F10 or start button to start while(1) running.
    2. in while(1), there is a flag-checking function, if flag == false, break.
    3. hotkey F11 or stop button pressed could emit a signal to the slot setting the flag to false, so it could jump out of the while(1) loop.

    I start the while(1) loop, but when I press F11 or stop button, it could not respond instantly. That is, it could not stop...

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: No instant response in while(1) loop?

    That is correct. Please read this: http://doc.trolltech.com/qq/qq27-responsive-guis.html

  3. The following 2 users say thank you to squidge for this useful post:

    casual0402 (20th March 2010), stevebakh (21st March 2010)

  4. #3
    Join Date
    Mar 2010
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: No instant response in while(1) loop?

    Thanks a lot

Similar Threads

  1. QHttp Response content
    By ct in forum Qt Programming
    Replies: 9
    Last Post: 11th July 2010, 11:06
  2. QSqlQuery and no response while exec()
    By jacek_ in forum Qt Programming
    Replies: 5
    Last Post: 5th November 2009, 08:47
  3. response from mail server
    By zakis in forum Qt Programming
    Replies: 4
    Last Post: 25th September 2009, 05:32
  4. Reqest and Response in XML
    By srohit24 in forum Qt Programming
    Replies: 28
    Last Post: 4th July 2009, 07:57

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.