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. QCharts - create a break (null value) in QLineSeries

QCharts - create a break (null value) in QLineSeries

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 1.0k 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.
  • S Offline
    S Offline
    Szustarol
    wrote on last edited by
    #1

    I am currently using QLineSeries to represent a temperature-over-time relation.
    I have a temperature sensor connected. It sends data every minute.
    The problem is, that the measurements are made in 20-minute periods after which the sensor is inactive for 60 minutes.
    I indicate the start of a new series by setting the temperature value to -0xff.
    Now, how can I create a Graph with QtCharts that has a null value - so It can display multiple measurements period on the same chart?

    Right now even if I pass the value of -0xff to be drawn on the graph, it
    just draws it. I want it to stop drawing the currently started line and create a new one whenever a new measurement period starts without using separate QLineSeries.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Szustarol
      wrote on last edited by
      #2

      So is there any solution?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Szustarol
        wrote on last edited by
        #3

        Still waiting for help…

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Szustarol
          wrote on last edited by
          #4

          So is there anyone here?

          jsulmJ 1 Reply Last reply
          0
          • S Szustarol

            So is there anyone here?

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

            @Szustarol Probably nobody has an answer to your question.
            Did you try to search on Internet? StackOverflow?

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

            S 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Szustarol Probably nobody has an answer to your question.
              Did you try to search on Internet? StackOverflow?

              S Offline
              S Offline
              Szustarol
              wrote on last edited by
              #6

              @jsulm Yes I did. I wouldn't ask a question if it was answered, in fact I have asked the same question on StackOverflow as well.

              J.HilkJ 1 Reply Last reply
              0
              • S Szustarol

                @jsulm Yes I did. I wouldn't ask a question if it was answered, in fact I have asked the same question on StackOverflow as well.

                J.HilkJ Online
                J.HilkJ Online
                J.Hilk
                Moderators
                wrote on last edited by J.Hilk
                #7

                @Szustarol
                QCharts is not a topic many user will have experience with. This is partly due to the inflexibility that QCharts has, and that it used to be Commercial only.
                I assume most people will have more experience with 3rd Party Qt plotters like QCustomPlot or Qwt or something similar

                The way I would do it is, with a new QLineSeries, but you explicitly states that you don't want to do that.


                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                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