Hi can anyone tell me how can i change the background color of a LineEdit or a Label to another Color???
Printable View
Hi can anyone tell me how can i change the background color of a LineEdit or a Label to another Color???
Change the QPalette color for the Window role.
Regards
Something like this
Code:
QPalette palette; palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette);