PDA

View Full Version : Qt::WA_NoSystemBackground not working for all widgets



alfah
6th September 2011, 12:55
hey all,

I was trying to specify attributes for the widgets using Qt::WA_NoSystemBackground so that the widgets do not take the background image of the form.

It worked well for the labels and scroll area text browser. Some how it does not give the desired effect for the radio buttons and the text box. I see a separate background for the radio buttons and the the text box.

This is how i have used


ui->passwordRadiobutton->setAttribute(Qt::WA_NoSystemBackground);

any suggestion?

wysota
8th September 2011, 17:00
Why are you using WA_NoSystemBackground for it? What is it exactly that you want to achieve?