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. QTimer
Forum Updated to NodeBB v4.3 + New Features

QTimer

Scheduled Pinned Locked Moved QML and Qt Quick
qtimer
5 Posts 4 Posters 3.2k Views 2 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.
  • D Offline
    D Offline
    diredko
    wrote on last edited by
    #1

    Hello everyone)
    Recently I have faced a problem. I need to have QTimer set up to run a specified number of times. Is there a way to do so without using additional variable? If there is not, which way most concise? Thanks)

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

      Hi and welcome to devnet,

      AFAIK, there's not. You can use a simple counter that you increment on each timeout but don't forget to reset it before starting your timer.

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        AFAIK, there's not. You can use a simple counter that you increment on each timeout but don't forget to reset it before starting your timer.

        D Offline
        D Offline
        diredko
        wrote on last edited by
        #3

        @SGaist thanks for your reply) Now I'm at least sure that this approach is ok) thanks again for welcome)

        1 Reply Last reply
        0
        • H Offline
          H Offline
          herick5566
          wrote on last edited by herick5566
          #4

          I think I am also facing this issue. Did you get any proper solution?

          https://www.psiphon.onl

          1 Reply Last reply
          0
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on last edited by dheerendra
            #5

            @herick5566 What is the issue are you facing ? Are you not able to stop the timer after some specific number of times ? Let us know the issue faced by you.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

            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