Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Plotting Graph in Qt
Forum Update on Tuesday, May 27th 2025

Plotting Graph in Qt

Scheduled Pinned Locked Moved Unsolved C++ Gurus
1 Posts 1 Posters 732 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.
  • J Offline
    J Offline
    Jai_Balaj
    wrote on 27 May 2016, 03:02 last edited by A Former User
    #1

    [Thread locked. Duplicate of http://forum.qt.io/topic/67561 --JKSH]

    How to plot graph in real time by asking inputs to user, and how to input x[] and y[] set values before calling setData(x,y).

    int x1 = ui->x1->text().toInt();
    int y1 = ui->y1->text().toInt();
    int x2 = ui->x2->text().toInt();
    int y2 = ui->y2->text().toInt();

    what I need to make to join these 2 points i.e p1(x1,y1) and p2(x2,y2)

    then I can call the function
    ui->customPlot->addGraph();
    ui->customPlot->graph(0)->setData(x, y);

    1 Reply Last reply
    0

    1/1

    27 May 2016, 03:02

    • Login

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