Hi everybody,
How to change the color of the QwtPLot axis' ?
Thanx in advance
Hi everybody,
How to change the color of the QwtPLot axis' ?
Thanx in advance
In general all colors of a widget ( here it is a QwtScaleWidget ) can be adjusted by using QWidget::setPalette(). The palette is usied this way: http://qwt.sourceforge.net/class_qwt...6d0ee8518fa5a6
Beside that you can set individual colors for each Label using QwtText::setColor().
Uwe
hassinoss (17th April 2014)
Thanx for your response, but it likes that this solution has some conflicts with qstyleSheet, because when i apply a styleSheet to my widget the setPalette don't work, can i set the color of axis just with qstyleSheet ?
The concept of Qt style sheets is somehow limited as it can't be extended for custom widgets, but at least what you have is what is derived from the base class - what AFAIR includes setting the palette.
In examples/stylesheets you find a couple of stylesheets, f.e. try to start "bode -stylesheet .../examples/choco.css"
Uwe
Bookmarks