Results 1 to 2 of 2

Thread: How to set QwtPlotItems in .qss file

  1. #1
    Join Date
    Jun 2015
    Posts
    109
    Thanks
    20
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default How to set QwtPlotItems in .qss file

    Hi,

    I'm trying to use different theme in my application, say, normal.qss and dark.qss

    So I want to switch color of QwtPlotMarker, and QwtLegend items, tried different way, but didnt worked.
    (say, dark.qss)
    Qt Code:
    1. {
    2. border: 1px solid gray;
    3. background: white;
    4. }
    5.  
    6. {
    7. color: white;
    8. }
    9.  
    10. QwtPlotMarker:plotItem
    11. {
    12. color: white;
    13. }
    To copy to clipboard, switch view to plain text mode 

    Thanks

  2. #2
    Join Date
    Jun 2015
    Posts
    109
    Thanks
    20
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to set QwtPlotItems in .qss file

    Found solution for this, use below and its works, this will set color for your legends background
    Qt Code:
    1. QwtLegendLabel
    2. {
    3. border: 1px solid gray;
    4. background: gray;
    5. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 2
    Last Post: 13th January 2014, 08:27
  2. Replies: 4
    Last Post: 2nd October 2013, 14:57
  3. Replies: 3
    Last Post: 1st November 2010, 17:33
  4. Replies: 3
    Last Post: 28th March 2009, 16:37
  5. Replies: 3
    Last Post: 25th May 2007, 08:49

Tags for this Thread

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.