Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-141159

A QML Timer with: "interval:0; repeat: true" never triggers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.3, 6.8.3
    • None

      The following code triggers once, as expected:

      Timer {
              interval: 0
              running: true
              onTriggered: {
                  console.log("onTriggered")
              }
          }
      
      

      The following code never triggers:

      Timer {
              interval: 0
              running: true
              repeat: true
              onTriggered: {
                  console.log("onTriggered")
                  interval = 60000
              }
      }
      

       

      If I change the interval from 0 to 1 in the second example, it works as expected.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            daniel_mcinnes Daniel McInnes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes