Results 1 to 3 of 3

Thread: Plot with gap

  1. #1
    Join Date
    Nov 2007
    Posts
    21
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Plot with gap

    Hi,

    I try to plot a curve with a gap within the curve.
    I just found this code from here: http://www.qtcentre.org/threads/4941...-curves-in-Qwt
    that addresses the same problem. But when I try to implement this I get the error
    'QwtSeriesData<QPointF>* QwtSeriesStore<QPointf>::d_series' is private within this context
    that points to the line
    const QPointF sample = d_series->sample(i);

    Since I am new to this: can you give me a hint what could be wrong?

    Thanks and best regards
    Ozzy
    Last edited by Ozzy; 17th January 2014 at 08:50.

  2. #2
    Join Date
    Dec 2013
    Location
    Toronto, Canada
    Posts
    62
    Thanked 16 Times in 15 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Plot with gap

    Try

    const QPointF sample = this->data()->sample(i);

    instead of const QPointF sample = d_series->sample(i);

    d_series is private(not protected) in the base class.

  3. #3
    Join Date
    Nov 2007
    Posts
    21
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Plot with gap

    Hey,

    thank you very much! This works perfect for me!!!

    Best regards
    Ozzy

Similar Threads

  1. Delete a Plot from Qwt Plot Matrix
    By krsree in forum Qwt
    Replies: 2
    Last Post: 22nd July 2013, 09:00
  2. Put plot axis out of the plot
    By KosyakOFF in forum Qwt
    Replies: 7
    Last Post: 21st June 2013, 13:36
  3. Replies: 3
    Last Post: 12th April 2013, 06:18
  4. Replies: 1
    Last Post: 17th April 2012, 10:10
  5. Replies: 7
    Last Post: 22nd September 2008, 22:05

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.