Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Creating Timer based on external time source
QtWS25 Last Chance

Creating Timer based on external time source

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 462 Views
  • 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.
  • A Offline
    A Offline
    Ayush Gupta
    wrote on last edited by
    #1

    Hi I need to implement timers where I need to stop the timers and call the callback functions
    based on the external timer source.

    There is some other functions which will set the time by calling an interface API every 25 ms.

    My QT code is a DLL

    aha_1980A 1 Reply Last reply
    0
    • A Ayush Gupta

      Hi I need to implement timers where I need to stop the timers and call the callback functions
      based on the external timer source.

      There is some other functions which will set the time by calling an interface API every 25 ms.

      My QT code is a DLL

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Ayush-Gupta,

      I've read your post several times, but honestly I don't get your problem.

      Can you please explain your problem a bit more in detail? Who is calling what and when? And what does it have to do with Qt?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ayush Gupta
        wrote on last edited by
        #3

        @aha_1980 There is one application which use to set time in my QT application.

        My QT application is GUI will be act as dll. So the external application will set the time in my QT application using one interface say setTimefromApp(uint milliseconds).

        So I need to implement timers based on the time set by external Application.

        Suppose time set by external application is fast than normal clock hence. The callback needs be called based if the time in set by external application is passed.

        Means time set in external application is running fast.

        Suppose creating a time MyTimer and its implementation will set to some callbacks/ list of timeouts
        which will be iterated over in the function setTimefromApp(uint milliseconds).

        aha_1980A 1 Reply Last reply
        0
        • A Ayush Gupta

          @aha_1980 There is one application which use to set time in my QT application.

          My QT application is GUI will be act as dll. So the external application will set the time in my QT application using one interface say setTimefromApp(uint milliseconds).

          So I need to implement timers based on the time set by external Application.

          Suppose time set by external application is fast than normal clock hence. The callback needs be called based if the time in set by external application is passed.

          Means time set in external application is running fast.

          Suppose creating a time MyTimer and its implementation will set to some callbacks/ list of timeouts
          which will be iterated over in the function setTimefromApp(uint milliseconds).

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Ayush-Gupta

          Does that mean the system time does not change but the time in your app changes?

          To me that sounds like a rather bad design which can lead to a lot of complication.

          I'm not sure if you will be able to use the existing Qt timers then.

          Qt has to stay free or it will die.

          1 Reply Last reply
          1
          • A Offline
            A Offline
            Ayush Gupta
            wrote on last edited by
            #5

            Application time which is launching QT application is moving faster than normal clock. Hence I need to run those timers with same pace with which application is running hence I am not in position to use QT Timers

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by SGaist
              #6

              Hi,

              Can you explain a bit more about that faster time in your application ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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