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. Set Interval and stop
Forum Updated to NodeBB v4.3 + New Features

Set Interval and stop

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 664 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I wrote:
    Timer_write_y_acq->setInterval(1000);
    connect(Timer_write_y_acq,SIGNAL(timeout()),this,SLOT(write_y_acq()));
    Timer_write_y_acq->start();

    but when in an other function I write :"Timer_write_y_acq->stop(); " it doesn't work..the timer doesn't stop

    Pablo J. RoginaP 1 Reply Last reply
    0
    • Pablo J. RoginaP Pablo J. Rogina

      @vale88 would you mind showing the community how? just in case it may help others.

      And please don't forget to mark your post as solved!.

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #5

      @Pablo-J.-Rogina I did an error, it works with time->stop

      1 Reply Last reply
      0
      • ? A Former User

        I wrote:
        Timer_write_y_acq->setInterval(1000);
        connect(Timer_write_y_acq,SIGNAL(timeout()),this,SLOT(write_y_acq()));
        Timer_write_y_acq->start();

        but when in an other function I write :"Timer_write_y_acq->stop(); " it doesn't work..the timer doesn't stop

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #2

        @vale88 is this Timer_write_y_acq object a member of your class where you call start() and stop()?

        could you show more code to see where/how the object is created and where/when you start and stop the timer?

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        ? 1 Reply Last reply
        4
        • Pablo J. RoginaP Pablo J. Rogina

          @vale88 is this Timer_write_y_acq object a member of your class where you call start() and stop()?

          could you show more code to see where/how the object is created and where/when you start and stop the timer?

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #3

          I solved

          Pablo J. RoginaP 1 Reply Last reply
          0
          • ? A Former User

            I solved

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #4

            @vale88 would you mind showing the community how? just in case it may help others.

            And please don't forget to mark your post as solved!.

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            ? 1 Reply Last reply
            2
            • Pablo J. RoginaP Pablo J. Rogina

              @vale88 would you mind showing the community how? just in case it may help others.

              And please don't forget to mark your post as solved!.

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #5

              @Pablo-J.-Rogina I did an error, it works with time->stop

              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