Results 1 to 9 of 9

Thread: QTimer::singleShot(...) triggered from a QAction does not start!?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTimer::singleShot(...) triggered from a QAction does not start!?

    use to give the timer property singleShot(true) seperatly
    like this
    timer->setSingleShot(TRUE);
    timer->start(200);

    i think the problem is that u are not starting the timer but not sure ... any how try it once ..
    "Behind every great fortune lies a crime" - Balzac

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTimer::singleShot(...) triggered from a QAction does not start!?

    Quote Originally Posted by wagmare View Post
    use to give the timer property singleShot(true) seperatly
    like this
    timer->setSingleShot(TRUE);
    timer->start(200);

    i think the problem is that u are not starting the timer but not sure ... any how try it once ..
    No you doesn't need to start timer when using static member function QTimer::singleShot.

Similar Threads

  1. Replies: 2
    Last Post: 27th February 2007, 21:06

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.