View Full Version : Dialog Background Color using Hand Code

5th June 2009, 06:36

I am new to Qt 4 Development. I have created a new form " Dialog without Buttons " Using Qt Designer. Now i need to change the Background color of the form by hand code ..How can i do it. Please help me

5th June 2009, 07:12
use stylesheet or QPalette on your ui class ...

5th June 2009, 08:30
With designer, you can easily change the palette !
Just needs about 30 seconds to do the changes I guess :)

And if you want to hand code / do it with code , you can use QWidget::setPalette