Results 1 to 4 of 4

Thread: is it possible to plot points without connecting points with line?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2015
    Posts
    128
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    70

    Default is it possible to plot points without connecting points with line?

    Hi,
    I have two questions. 1- when plotting like below example, points be connected together by lines. I need the points be plotted and there be no line. 2- my data is too huge and i want to use float instead of double but setSamples function gives two "QVector< double > &" . is it possible to use QVector< float > & ???
    for example:
    Qt Code:
    1. QVector<double> v(10);
    2.  
    3. v<<0<<1<<2<<3<<4<<5<<6<<7<<8<<9;//1-is it possible only this points be showed without any line between them?
    4.  
    5. c.setSamples(v, v);//2-how could i use Qvector<float> instead of Qvector<double>?
    6. c.attach(&p);
    7.  
    8. p.show();
    To copy to clipboard, switch view to plain text mode 

    thanks for any help
    Last edited by Alex22; 13th December 2015 at 19:56.

Similar Threads

  1. Replies: 2
    Last Post: 2nd May 2012, 09:49
  2. Connecting 2 points using QML
    By aya_lawliet in forum Qt Quick
    Replies: 0
    Last Post: 4th November 2011, 08:05
  3. Connecting Points using Qt
    By prajna8 in forum Newbie
    Replies: 4
    Last Post: 29th October 2010, 05:28
  4. Editing points on QWt Plot
    By manmohan in forum Qwt
    Replies: 6
    Last Post: 14th May 2010, 07:43
  5. move/drag points on qwt plot
    By rambo83 in forum Qwt
    Replies: 5
    Last Post: 23rd November 2009, 08:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.