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. Adding name to graph in qcustomplot
Qt 6.11 is out! See what's new in the release blog

Adding name to graph in qcustomplot

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 486 Views 1 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.
  • F Offline
    F Offline
    firsnur96
    wrote on last edited by
    #1

    I want to add name to my graph. I've written the code below. It doesnt work.
    I want to a thing like series->setName
    Am i using the functions wrong?

      ```
      cp1->graph(0)->addData(key,  number);
      cp1->graph(0)->name();
      cp1->graph(0)->setName("try");
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      QCustomPlot is not an official Qt module, you should use their forum for this question.

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

      F 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        QCustomPlot is not an official Qt module, you should use their forum for this question.

        F Offline
        F Offline
        firsnur96
        wrote on last edited by
        #3

        @SGaist thank you

        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