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. How to implement displaying information about points in QCharts?
Forum Update on Tuesday, May 27th 2025

How to implement displaying information about points in QCharts?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 4.9k 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.
  • E Offline
    E Offline
    engsml
    wrote on 1 Jun 2018, 16:02 last edited by
    #1

    I currently have a QChartView with QChart and QScatterSeries and QLineSeries. I have looked through the documentation for all of these classes and I can't seem to find any method that will display information about a specific point in my plot. I want to display the x and y coordinates as a tooltip when I hover or click the point.

    Am I missing any methods that could help accomplish this? Most of my research has determined that the QCustomPlot class (a separate library I would have to download) is the only widget that could display this information. I would prefer to stay within Qt's classes for licensing purposes.

    Any help is much appreciated!

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 1 Jun 2018, 16:17 last edited by VRonin 6 Jan 2018, 19:04
      #2

      https://doc.qt.io/qt-5/qtcharts-callout-example.html


      P.S.

      I would prefer to stay within Qt's classes for licensing purposes.

      QCustomPlot and QtChart have the exact same licensing requirements

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      E 1 Reply Last reply 1 Jun 2018, 17:22
      1
      • V VRonin
        1 Jun 2018, 16:17

        https://doc.qt.io/qt-5/qtcharts-callout-example.html


        P.S.

        I would prefer to stay within Qt's classes for licensing purposes.

        QCustomPlot and QtChart have the exact same licensing requirements

        E Offline
        E Offline
        engsml
        wrote on 1 Jun 2018, 17:22 last edited by
        #3

        @VRonin Do they have the same commercial ones? I have checked and they only state that I need to contact the developers of QCustomPlot for other licensing.

        V J 2 Replies Last reply 1 Jun 2018, 19:04
        0
        • E engsml
          1 Jun 2018, 17:22

          @VRonin Do they have the same commercial ones? I have checked and they only state that I need to contact the developers of QCustomPlot for other licensing.

          V Offline
          V Offline
          VRonin
          wrote on 1 Jun 2018, 19:04 last edited by
          #4

          @engsml You are right, if you have already Qt commercial it makes sense

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          2
          • E engsml
            1 Jun 2018, 17:22

            @VRonin Do they have the same commercial ones? I have checked and they only state that I need to contact the developers of QCustomPlot for other licensing.

            J Offline
            J Offline
            JonB
            wrote on 1 Jun 2018, 20:16 last edited by
            #5

            @engsml
            Are these of any interest at all to you:
            https://forum.qt.io/topic/69626/visualize-value-on-qt-chart-view
            https://stackoverflow.com/questions/41281693/qt-charts-how-to-display-a-specific-point-value-on-x-and-y-axis

            1 Reply Last reply
            1
            • J JonB referenced this topic on 3 Jun 2024, 19:51

            1/5

            1 Jun 2018, 16:02

            • Login

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