Results 1 to 7 of 7

Thread: Filling area covers curve。

  1. #1
    Join Date
    Jul 2013
    Posts
    72
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Filling area covers curve。

    选区_002.png


    As the image above,a black curve is shadowed by filling area, what should I do to make it clear as there is no filling area as the image below?
    It seems to refer to layers. Is there any suggestion?


    选区_003.png

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

    Default Re: Filling area covers curve。

    As long as you don't set a valid curve brush nothing gets filled below a curve. Note, that Qt::NoBrush is the default and something in your code should be responsible for the filling area.

    Uwe

  3. #3
    Join Date
    Jul 2013
    Posts
    72
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Filling area covers curve。

    In fact ,I have to set brush to fill curves, any other suggestion?

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Filling area covers curve。

    Wasn't your question about how to disable the curve filling in the first picture to have something like in the second one ?

    Uwe

  5. #5
    Join Date
    Jul 2013
    Posts
    72
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Filling area covers curve。

    No,my question is how to make the curve within the filling area to be clear as the second image。The curve in filling area is blurred due to the filling area。

  6. #6
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Filling area covers curve。

    Plot items are painted in z order - see QwtPlotItem::setZ().

    Uwe

  7. #7
    Join Date
    Jul 2013
    Posts
    72
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Filling area covers curve。

    o,I see , thank you

Similar Threads

  1. Infinite filling area curve
    By SandyEmerald in forum Qwt
    Replies: 5
    Last Post: 24th March 2014, 13:06
  2. Replies: 0
    Last Post: 14th April 2010, 22:26
  3. Filling a QGraphicsItem
    By c_srikanth1984 in forum Qt Programming
    Replies: 15
    Last Post: 6th July 2009, 14:34
  4. Filling an image
    By Caius Aérobus in forum Qt Programming
    Replies: 6
    Last Post: 6th July 2008, 21:13
  5. Get covers from amazon.com like in Amarok
    By jiveaxe in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2008, 08:29

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.