Results 1 to 4 of 4

Thread: Using Qwt with QVector

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    18
    Thanked 68 Times in 66 Posts

    Default Re: Using Qwt with QVector

    Hi,

    how do you want to plot a series of floats? for each point, you need an x- and a y-value.

    assuming, you have a QVector with x-values and a QVector with y-values, you can use "SetSamples(...)" (or thelike) to add your points to a curve. have a look at the documentation of QwtPlotCurve and you'll find the appropriate method.

    hth,
    Felix

  2. The following user says thank you to FelixB for this useful post:

    OzQTNoob (9th February 2012)

Similar Threads

  1. QVector::reserve() bug?
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2019, 11:34
  2. Replies: 5
    Last Post: 2nd September 2011, 23:11
  3. Problem with qvector
    By zorro68 in forum Qt Programming
    Replies: 1
    Last Post: 23rd February 2008, 01:02
  4. Qvector
    By phillip_Qt in forum Qt Programming
    Replies: 3
    Last Post: 27th November 2007, 10:46
  5. QVector
    By sabeesh in forum Qt Programming
    Replies: 2
    Last Post: 17th September 2007, 14:37

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.