Results 1 to 3 of 3

Thread: Execute an action on regular time

  1. #1
    Join Date
    Apr 2010
    Posts
    17
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Execute an action on regular time

    Hello,

    I would like to execute an action each 0.01 second. I thought to make a timeEdit and to connect it to a slot each time the value change like that :
    connect(ui->timeEdit,SIGNAL(timeChanged(QTime)),this,SLOT(pre Frame()));

    But TimeEdit is on the format hh.mm.ss and i would like milisecond...
    Moreover i don't know how to start the timeEdit...

    If you have any solution or a better one, please help me!

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Execute an action on regular time

    Try QTimer.

  3. The following user says thank you to SixDegrees for this useful post:

    valy12 (21st May 2010)

  4. #3
    Join Date
    Apr 2010
    Posts
    17
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Execute an action on regular time

    Thanks, I did it with QTimer and it run. I didn't know this one .

Similar Threads

  1. Regular Expression Problem
    By kaushal_gaurav in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2009, 09:41
  2. Regular expression in QLineEdit?
    By vishal.chauhan in forum Qt Programming
    Replies: 3
    Last Post: 1st October 2007, 10:58
  3. Find with Regular Expression?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 1st August 2007, 14:44
  4. Qt regular expressions!!
    By notsonerdysunny in forum Qt Programming
    Replies: 9
    Last Post: 1st April 2007, 12:56
  5. No action checked in an exclusive action group
    By SkripT in forum Qt Programming
    Replies: 12
    Last Post: 13th February 2006, 06:19

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.