PDA

View Full Version : Qwt overrides Widget background



garfield
17th December 2007, 20:16
Hello,

my problem is that i have a widget which colors are set with a stylesheet defined in the qdesigner. This works fine, but if i add a Qwt plot to the widget, the background is set to default and i unable to set it with Widget::setBackgroundRole.

Perhaps you have a suggestion how to do a workaround?

I am using Qwt Version 5.0.0 and Qt 4.3.1 on Windows.

Thank You,
Garfield

Uwe
18th December 2007, 09:16
This works fine, but if i add a Qwt plot to the widget, the background is set to default and i unable to set it with Widget::setBackgroundRole.
The background of your widget, or the background of the plot canvas ? Can you post a small demo ?

Uwe