Results 1 to 2 of 2

Thread: Control Default QwtPlotCurve, zoomer rubber band and text colors with StyleSheets?

  1. #1
    Join Date
    Sep 2011
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Control Default QwtPlotCurve, zoomer rubber band and text colors with StyleSheets?

    Hi,

    Is there anyway using Qt Stylesheets to configure the default QwtPlotCurve pen color? I am also trying to configure the rubber band color as well.

    I see there are some .css examples for the backgrounds and the axis label text colors, but nothing for curves or symbols. Is this not possible / supported with Stylesheets?

    Thanks.

    -Mike

  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: Control Default QwtPlotCurve, zoomer rubber band and text colors with StyleSheets

    Style sheets are for widgets only and it is made for Qt widgets only: no concept how to extend it for 3rd party widgets.

    So for plot items all you can do is to using the generic concept of properties or changing colors of the canvas palette and using them for initializing the plot items.
    The rubber band is a widget and can be configured using its object name "PickerRubberBand". But be careful as using style sheets has some side effects.

    Uwe

Similar Threads

  1. Multiple rubber band selections?
    By s7 in forum Qt Programming
    Replies: 1
    Last Post: 11th August 2012, 01:23
  2. How do I clear the rubber band after a selection is done
    By aarelovich in forum Qt Programming
    Replies: 1
    Last Post: 15th July 2010, 12:29
  3. Replies: 2
    Last Post: 17th June 2010, 13:38
  4. How to draw rubber band using XOR
    By lni in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2009, 12:13
  5. Rubber band artifacts?
    By mooreaa in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2008, 18:19

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.