Hi can anyone tell me how can i change the background color of a LineEdit or a Label to another Color???
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
Ahmad (30th April 2007)
Something like this
Qt Code:
QPalette palette; palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette);To copy to clipboard, switch view to plain text mode
Ahmad (30th April 2007)
Bookmarks