You are not logged in.

1

Sunday, May 7th 2006, 10:20pm

widget transparency

I have a stand-alone widget that I can't seem to get transparent. Whenever I set the widget's palette to Qt::transparent, the background turns out black rather than transparent (to the desktop or anything else behind it). Any ideas?

Thanks, Brian.

2

Wednesday, November 29th 2006, 12:52pm

RE: widget transparency

Hi Brian,
Have you solved this problem .. I am facing the same problem. I am newbie to QT and won't know hot to do it.. Please help me out if you had solved this problem
Thanks

n00b

Trainee

  • "n00b" is male

Posts: 118

Location: Germany

Occupation: Systemelektroniker

  • Send private message

3

Thursday, November 30th 2006, 9:36am

setWindowOpacity(qreal op);!

melih

Beginner

  • "melih" is male

Posts: 28

Location: Istanbul

Occupation: Crazy Coder

  • Send private message

4

Thursday, November 30th 2006, 2:21pm

in QT4

void QWidget::setAttribute ( Qt::WidgetAttribute attribute, bool on = true )

----
for transparancy of a widget-
Qt::WidgetAttribute -- Qt::WA_ContentsPropagated 3

myWidget->setAttribute( Qt::WA_ContentsPropagated );
"Simplicity - the art of maximizing the amount of work not done - is essential."
Principles of Agile Software Development