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. QTimer
Qt 6.11 is out! See what's new in the release blog

QTimer

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 441 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.
  • R Offline
    R Offline
    Rumeysa_135
    wrote on last edited by
    #1

    Hello Everyone,
    I am designing an interface. I used stackedwidget because I wanted to have multiple pages. On the first page of the stackedwidget, I can print the data I want to print on the interface screen by using a timer, refreshing it every 2 seconds. I want to apply this process to the second page, but I can only get the data once. What can I do for it?

    jsulmJ 1 Reply Last reply
    0
    • R Rumeysa_135

      Hello Everyone,
      I am designing an interface. I used stackedwidget because I wanted to have multiple pages. On the first page of the stackedwidget, I can print the data I want to print on the interface screen by using a timer, refreshing it every 2 seconds. I want to apply this process to the second page, but I can only get the data once. What can I do for it?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Rumeysa_135 said in QTimer:

      but I can only get the data once

      What data and why can you get it only once? Please describe better.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Rumeysa_135 said in QTimer:

        but I can only get the data once

        What data and why can you get it only once? Please describe better.

        R Offline
        R Offline
        Rumeysa_135
        wrote on last edited by
        #3

        @jsulm
        By communicating via serial port, I get temperature, pressure and humidity data, I print these data to the screen on the first page of the stackedwidget with timer and I can refresh it every 2 seconds but I cannot do this on the 2nd page.

        jsulmJ Pl45m4P 2 Replies Last reply
        0
        • R Rumeysa_135

          @jsulm
          By communicating via serial port, I get temperature, pressure and humidity data, I print these data to the screen on the first page of the stackedwidget with timer and I can refresh it every 2 seconds but I cannot do this on the 2nd page.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Rumeysa_135 said in QTimer:

          but I cannot do this on the 2nd page

          Why not? What is the problem?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Rumeysa_135

            @jsulm
            By communicating via serial port, I get temperature, pressure and humidity data, I print these data to the screen on the first page of the stackedwidget with timer and I can refresh it every 2 seconds but I cannot do this on the 2nd page.

            Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on last edited by
            #5

            @Rumeysa_135 said in QTimer:

            but I cannot do this on the 2nd page.

            The pages should only be a representation of your data.
            You still retrieve the data every 2 seconds and display the data you want to show on page/widget 1 and 2 respectively.


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            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