Results 1 to 4 of 4

Thread: How to wait 2 seconds before continue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: How to wait 2 seconds before continue

    Thanks it works!!!

    Think DigitalGasoline

  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: How to wait 2 seconds before continue

    Btw, QTimer has a convenient static method which can combine all that to a single statement:
    Qt Code:
    1. QTimer::singleShot(2000, this, SLOT(yourSlot()));
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

Similar Threads

  1. How to make my program wait for 2 seconds ?
    By probine in forum Qt Programming
    Replies: 2
    Last Post: 26th December 2006, 13:31

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
  •  
Qt is a trademark of The Qt Company.