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. Can we disable the signal emitted by the triggering of the Timer?
Forum Updated to NodeBB v4.3 + New Features

Can we disable the signal emitted by the triggering of the Timer?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 116 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.
  • P Offline
    P Offline
    Parvati
    wrote on last edited by
    #1

    A sine wave was plotted using a timer with the help of values written in a text file.On every triggering(on opening the page containing the sine wave), the time period of the sine wave decreases resulting in a frequency increased sine wave.

    On observation,it is understood that on each triggering ,a new signal is emitted in addition to the existing signal. Can this be avoided ? can anyone suggest a solution so that the time period doesn't decrease and remain constant.

    //        Timer {
    //            id:mytimer
    //            interval: 100
    //            repeat: true
    //            running: true
    
    //            onTriggered: {
    //                timeStep++;
    //                var k = classA.floatarray[0];   
    //                classA.readtext(); /*function that reads sinewave values from the file*/
    //                series1.append(timeStep,k);
    //            }
    //        }
    
    1 Reply Last reply
    0

    • Login

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