Results 1 to 2 of 2

Thread: Seperate QBrush for samples in QwtPlotIntervalCurve

  1. #1
    Join Date
    Mar 2014
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Seperate QBrush for samples in QwtPlotIntervalCurve

    Sorry if this is a silly question, but how do I go about applying different colors to the QwtIntervalSamples in QwtPlotIntervalCurve? I tried creating a QwtIntervalSymbol and applying a QBrush and QPen, but the color was applied to all of the intervals in QwtPlotIntervalCurve.

    Thanks!

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: Seperate QBrush for samples in QwtPlotIntervalCurve

    You can't, the interval between the 2 curves is always filled with the same brush. If you want to draw different symbols you could try to overload QwtPlotIntervalCurve::drawSymbols().

    Uwe

Similar Threads

  1. Problem with QwtPlotIntervalCurve
    By SandyEmerald in forum Qwt
    Replies: 2
    Last Post: 11th October 2013, 16:16
  2. Can't build samples
    By kalons in forum Installation and Deployment
    Replies: 5
    Last Post: 22nd December 2010, 19:06
  3. BuddyList - samples
    By underlife in forum Newbie
    Replies: 1
    Last Post: 7th October 2009, 13:09
  4. How do you build QT without the samples??
    By Joachie in forum Qt Programming
    Replies: 3
    Last Post: 13th April 2009, 21:16
  5. uic not creating seperate .h and .cpp files
    By Kapil in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2006, 10:43

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.