Change QwtPlot background while using dark mode gui?

85 views Asked by At

When I dissable dark mode which is provided via BreezeStyleSheet:

https://github.com/Alexhuszagh/BreezeStyleSheets

it works (I can change background with set canvas palette to whatever I want and then attach it to QwtPlot). But when I use style sheet it seems almost impossible to set it. Have anybody some ideas how to fix this issue ?

1

There are 1 answers

0
Miro Bozon On BEST ANSWER

For custom widget based on QwtPlot it will be:

this->canvas()->setStyleSheet("background-color: black;border: none;");

in constructor.