Results 1 to 4 of 4

Thread: Call a function every x seconds until button pressed

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Call a function every x seconds until button pressed

    QTimer
    For 1. call QTimer::start()
    For 2. call QTimer::stop()
    connect the slot or signal you want to call periodically to QTimer::timeout() signal.

  2. The following user says thank you to stampede for this useful post:

    bubble (11th February 2014)

Similar Threads

  1. do something while a button is pressed
    By saman_artorious in forum Qt Programming
    Replies: 11
    Last Post: 12th November 2013, 15:39
  2. Replies: 4
    Last Post: 2nd August 2012, 07:42
  3. Replies: 6
    Last Post: 4th October 2010, 03:19
  4. How to call a function when i clic a button?
    By trend900 in forum Newbie
    Replies: 2
    Last Post: 22nd January 2009, 16:40
  5. Getting the row for button pressed
    By steg90 in forum Qt Programming
    Replies: 2
    Last Post: 28th November 2007, 15:45

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.