Results 1 to 2 of 2

Thread: Sleep condition in QT

  1. #1
    Join Date
    May 2008
    Posts
    42
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4

    Default Sleep condition in QT

    Hi Friends,

    Is there any API like Sleep() and SleepEx() like in VC++ in QT.

    Thanks in advance..

  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: Sleep condition in QT

    You can sleep in a worker thread using static protected method QThread::sleep() but not in the GUI thread because it would freeze the whole application. What do you need it for?
    J-P Nurmi

Similar Threads

  1. sleep
    By sonuani in forum Newbie
    Replies: 1
    Last Post: 17th March 2008, 12:37
  2. QObject sleep
    By TheGrimace in forum Newbie
    Replies: 18
    Last Post: 19th October 2007, 22:26
  3. Replies: 1
    Last Post: 14th June 2007, 15:52
  4. sleep - sleeps, but not when I want it to sleep
    By nongentesimus in forum Newbie
    Replies: 2
    Last Post: 2nd March 2006, 14:43
  5. where's the sleep() func?
    By TheKedge in forum Qt Programming
    Replies: 11
    Last Post: 2nd February 2006, 15:54

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.