nagpalma
27th April 2007, 17:41
Hi ,
The widget in the "analogclock" example is transparent with respect with my widget. But, how can i make my widget transparent with respect with my desktop? (My widget is the base widget for all the other widget including the widget in the "analogclock").
I tryed to alter the widget's default palette with:
QPalette p(palette());
p.setColor ( QPalette::Window, Qt::transparent);
setPalette(p);
but instead of a transparent background i got a black background !
I don't understand what happened.
Please, help me.
Regards,
Nuno
The widget in the "analogclock" example is transparent with respect with my widget. But, how can i make my widget transparent with respect with my desktop? (My widget is the base widget for all the other widget including the widget in the "analogclock").
I tryed to alter the widget's default palette with:
QPalette p(palette());
p.setColor ( QPalette::Window, Qt::transparent);
setPalette(p);
but instead of a transparent background i got a black background !
I don't understand what happened.
Please, help me.
Regards,
Nuno