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 add a text lable to a point plotted by QCustomplot?
Qt 6.11 is out! See what's new in the release blog

how to add a text lable to a point plotted by QCustomplot?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.8k 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.
  • H Offline
    H Offline
    hitbuyi
    wrote on last edited by
    #1

    I have plotted some points in a graph using QCustomPlot, now I want to add text labels to these points seperately, how to do that?

    Any help will be appreciated.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's something you should rather to the QCustomPlot folks forum.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        what about
        https://www.qcustomplot.com/index.php/tutorials/items

        alt text

        H 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          That's something you should rather to the QCustomPlot folks forum.

          H Offline
          H Offline
          hitbuyi
          wrote on last edited by
          #4

          @SGaist I'll move this topic to there

          1 Reply Last reply
          0
          • mrjjM mrjj

            Hi
            what about
            https://www.qcustomplot.com/index.php/tutorials/items

            alt text

            H Offline
            H Offline
            hitbuyi
            wrote on last edited by
            #5

            @mrjj solved, thanks

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Great !
              Can you share the solution ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              H 1 Reply Last reply
              1
              • SGaistS SGaist

                Great !
                Can you share the solution ?

                H Offline
                H Offline
                hitbuyi
                wrote on last edited by hitbuyi
                #7

                @SGaist mrjj is right, see https://www.qcustomplot.com/index.php/tutorials/items

                and make sure

                1. points are plotted in graph(0)
                2. labels are plotted in grapth(1), every label's position is near its point to be marked
                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