Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Smallest interval of timer for QT
Qt 6.11 is out! See what's new in the release blog

Smallest interval of timer for QT

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 690 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lutou
    wrote on last edited by
    #1

    Hello all,

    I met a problem with the Timer method of QML. I set the interval to 2 milliseconds for a repeatable Timer in QML. However, It can not run every 2 milliseconds.

    Here is only a try. I tried also 5 milliseconds, 20 milliseconds, 50 milliseconds. The timer can repeatedly in the right interval higher than 50 milliseconds.

    I can not find the reason. Could someone help me to know this? Thank you!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by sierdzio
      #2

      You need to use a proper timerType. This property, however, is only available in C++. You need to expose a custom type to QML to get it.

      Keep in mind though, that 2ms is a very short period of time. It will be hard to keep it.

      (Z(:^

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved