Results 1 to 4 of 4

Thread: plotting just points and without any lines between them

Threaded View

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

    Default plotting just points and without any lines between them

    Hi,
    (I have asked my question here and sorry for bad position selecting for asking. I think here is suitable for my basic question).

    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; 16th December 2015 at 15:57.

Similar Threads

  1. Replies: 3
    Last Post: 7th March 2013, 06:14
  2. Replies: 0
    Last Post: 3rd November 2011, 18:03
  3. how to make lines or points flicker?
    By lengshuang in forum Qt Programming
    Replies: 2
    Last Post: 21st April 2009, 11:53
  4. How to draw some points and lines?
    By luffy27 in forum Qt Programming
    Replies: 1
    Last Post: 24th November 2006, 16:47

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.