Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Responsive QtMainWindow on Startup.

Responsive QtMainWindow on Startup.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qt qmainwindowguisensor readingsraspberry pi 3
7 Posts 3 Posters 1.4k 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
    Andrex_Qt
    wrote on 7 May 2019, 10:12 last edited by Andrex_Qt 5 Jul 2019, 10:23
    #1

    hi,
    my project involves taking reading from sensors to RaspberryPi and displaying them on Qt GUI. So far i was able to achieve it by using button clicked signal and slot. Now i want it to start getting readings as soon as program is executed. I scanned through some web articles but i did not get any Answers.

    A 1 Reply Last reply 7 May 2019, 10:20
    0
    • A Andrex_Qt
      7 May 2019, 10:12

      hi,
      my project involves taking reading from sensors to RaspberryPi and displaying them on Qt GUI. So far i was able to achieve it by using button clicked signal and slot. Now i want it to start getting readings as soon as program is executed. I scanned through some web articles but i did not get any Answers.

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 7 May 2019, 10:20 last edited by
      #2

      @Andrex_Qt

      Which sensors are you talking about? QSensors have their own signals that are emitted when the value changes.

      For your own sensors you can use QTimer to read the periodically.

      Regards

      Qt has to stay free or it will die.

      A 1 Reply Last reply 7 May 2019, 10:27
      4
      • A aha_1980
        7 May 2019, 10:20

        @Andrex_Qt

        Which sensors are you talking about? QSensors have their own signals that are emitted when the value changes.

        For your own sensors you can use QTimer to read the periodically.

        Regards

        A Offline
        A Offline
        Andrex_Qt
        wrote on 7 May 2019, 10:27 last edited by
        #3

        @aha_1980
        those are physical sensors connected to raspberry pi.
        readings are updated on GUI.
        I have updated my question.
        regards.

        A 1 Reply Last reply 7 May 2019, 10:29
        0
        • A Andrex_Qt
          7 May 2019, 10:27

          @aha_1980
          those are physical sensors connected to raspberry pi.
          readings are updated on GUI.
          I have updated my question.
          regards.

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 7 May 2019, 10:29 last edited by
          #4

          @Andrex_Qt You still didn't say how you access the sensors.

          You should read the links I provided to you.

          Regards

          Qt has to stay free or it will die.

          P A 2 Replies Last reply 7 May 2019, 15:02
          1
          • A aha_1980
            7 May 2019, 10:29

            @Andrex_Qt You still didn't say how you access the sensors.

            You should read the links I provided to you.

            Regards

            P Offline
            P Offline
            Pablo J. Rogina
            wrote on 7 May 2019, 15:02 last edited by
            #5

            @Andrex_Qt

            You still didn't say how you access the sensors.

            yes, that's very important. For instance, if you're using wiringPi library, you may want to take a look at using interrupts which will let you register a callback function.

            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
            1
            • A aha_1980
              7 May 2019, 10:29

              @Andrex_Qt You still didn't say how you access the sensors.

              You should read the links I provided to you.

              Regards

              A Offline
              A Offline
              Andrex_Qt
              wrote on 8 May 2019, 09:08 last edited by
              #6

              @aha_1980
              ok i access them through C Api
              and i am reading the links you have given. thanks!

              P 1 Reply Last reply 8 May 2019, 11:44
              0
              • A Andrex_Qt
                8 May 2019, 09:08

                @aha_1980
                ok i access them through C Api
                and i am reading the links you have given. thanks!

                P Offline
                P Offline
                Pablo J. Rogina
                wrote on 8 May 2019, 11:44 last edited by
                #7

                @Andrex_Qt said in Responsive QtMainWindow on Startup.:

                i access them through C Api

                Could it be possible you share a link to such API for the benefit of other users just in case?

                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
                0

                1/7

                7 May 2019, 10:12

                • Login

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