Hi everyone,
I want to make a semi-transparent canvas for qwtplot.
But a black background will appear instead of parent widget behind it.
QwtPlotCanvas Class Reference
qwtmissed.png
Hi everyone,
I want to make a semi-transparent canvas for qwtplot.
But a black background will appear instead of parent widget behind it.
QwtPlotCanvas Class Reference
qwtmissed.png
Try this in your QwtPlot class
Qt Code:
setStyleSheet(styleSheet);To copy to clipboard, switch view to plain text mode
Better not - style sheets are a nightmare as there is no API to know them. Qwt tries its best to somehow reverse engineer its settings to handle rounded borders etc. but from the point of view of a widget library they are a PITA.
But for setting the background you can simply change the palette - no need for using style sheets at all.
Uwe
Bookmarks