Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QT 5 designer and Line Graph
Forum Updated to NodeBB v4.3 + New Features

QT 5 designer and Line Graph

Scheduled Pinned Locked Moved Unsolved Qt for Python
7 Posts 2 Posters 502 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.
  • C Offline
    C Offline
    Crabnewbula
    wrote on last edited by
    #1

    Hi guys I am using QT5 Designer first time. I have created a simple GUI and I want to display some values on that interface like temperature and all. My question is how I can input the values from the sensor to the text box and how I can create the graph from that, some sort of Temp Vs Time graph.
    Would love to know the ways from you people.

    jsulmJ 1 Reply Last reply
    0
    • C Crabnewbula

      Hi guys I am using QT5 Designer first time. I have created a simple GUI and I want to display some values on that interface like temperature and all. My question is how I can input the values from the sensor to the text box and how I can create the graph from that, some sort of Temp Vs Time graph.
      Would love to know the ways from you people.

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

      @Crabnewbula You can show text using QLabel, see https://doc.qt.io/qt-6/qlabel.html#text-prop
      To show graphs you can use https://doc.qt.io/qt-5/qtcharts-index.html

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

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Crabnewbula
        wrote on last edited by
        #3

        Thanks for the reply, I am trying to transmit thermocouple readings(used to measure temperature) to my raspberry pi 4 and then raspberry pi 4 will insert those values into that Label (text box) and the graph will be made from the label values.

        jsulmJ 1 Reply Last reply
        0
        • C Crabnewbula

          Thanks for the reply, I am trying to transmit thermocouple readings(used to measure temperature) to my raspberry pi 4 and then raspberry pi 4 will insert those values into that Label (text box) and the graph will be made from the label values.

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

          @Crabnewbula Sorry, but you have to be more specific when asking questions. To me it is unclear where exactly you need help.

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

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Crabnewbula
            wrote on last edited by
            #5

            Ok so this what I am doing. I have attached my arduino uno to Raspberry Pi4 , Arduino is sending some text to my raspberry through serial communication. And I can see the text on thonny IDE. I want that text to be displayed on my GUI of QT5 designer.
            So overall, how to send that text from raspberry to my GUI that I built in QT5 Designer.

            jsulmJ 1 Reply Last reply
            0
            • C Crabnewbula

              Ok so this what I am doing. I have attached my arduino uno to Raspberry Pi4 , Arduino is sending some text to my raspberry through serial communication. And I can see the text on thonny IDE. I want that text to be displayed on my GUI of QT5 designer.
              So overall, how to send that text from raspberry to my GUI that I built in QT5 Designer.

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

              @Crabnewbula So, you have to implement serial communication in your app first.
              Take a look at: https://doc.qt.io/qt-6/qserialport.html
              There are also example applications: https://doc.qt.io/qt-6/qtserialport-examples.html

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

              1 Reply Last reply
              1
              • C Offline
                C Offline
                Crabnewbula
                wrote on last edited by
                #7

                Thanks a lot I will try and let you know.

                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