View Full Version : prob with changing QLineEdit background color
Ahmad
30th April 2007, 12:38
Hi can anyone tell me how can i change the background color of a LineEdit or a Label to another Color???
marcel
30th April 2007, 12:41
Change the QPalette color for the Window role.
Regards
vermarajeev
30th April 2007, 12:44
Change the QPalette color for the Window role.
Regards
Something like this
QPalette palette;
palette.setColor(widget->backgroundRole(), color);
widget->setPalette(palette);
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.