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. QCustomplot create graph more than once, at the same time
Qt 6.11 is out! See what's new in the release blog

QCustomplot create graph more than once, at the same time

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 369 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 just started to use qcustomplot.
    I want to create a graph using **addGraph.**ü
    I want to do it dynamically. But why i cant use it like in the below

    customplot->addGraph(5);
    

    I want to create more than one graph at the same time.

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

      Hi

      Just so you know it. QCustomPlot is not an official Qt Module.
      Its completely 3rd party.

      You can just call addGraph() multiple times.

      for (int c=0; c < 5;c++)
      customPlot->addGraph();

      or
      customPlot->addGraph();
      customPlot->addGraph();
      customPlot->addGraph();

      F 1 Reply Last reply
      2
      • mrjjM mrjj

        Hi

        Just so you know it. QCustomPlot is not an official Qt Module.
        Its completely 3rd party.

        You can just call addGraph() multiple times.

        for (int c=0; c < 5;c++)
        customPlot->addGraph();

        or
        customPlot->addGraph();
        customPlot->addGraph();
        customPlot->addGraph();

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

        @mrjj 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