Results 1 to 3 of 3

Thread: How to make my program wait for 2 seconds ?

  1. #1
    Join Date
    Jan 2006
    Posts
    185
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to make my program wait for 2 seconds ?

    I want my program to wait 2 seconds before it does something.

    How ?

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to make my program wait for 2 seconds ?

    sleep(2) or sleep(2000) ?

  3. #3
    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: How to make my program wait for 2 seconds ?

    How about QTimer? Using sleeping of any kind causes the whole GUI to freeze.
    J-P Nurmi

Similar Threads

  1. how to make program wait
    By psmech in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2006, 05:24

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.