Specifying Attributes of widgets
-
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?
alfah
-
I have tried the following code to make the QLineEdit but it does not work wither :(
@
QPalette palette = ui->passwordSetLineEdit->palette();
palette.setColor(ui->backBut->backgroundRole(), Qt::transparent);
ui->passwordSetLineEdit->setPalette(palette);
@pls help
-
What platform you are working on?