You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, May 25th 2012, 10:27am

Change the font's color of all widgets

Hello, i want to change the font color of all my widgets in a windows, how can i do this?

i found only for the font, not the color....

  • "PoojaVishwanath" is female

Posts: 13

Location: Bangalore

Occupation: Software Developer

  • Send private message

2

Monday, May 28th 2012, 10:13am

Hi
You can do this in two ways.
1. using setStyleSheet eg: (widget.setStyleSheet("color:black;");
2. using setPalette (refer to QPalette).
:)

3

Monday, May 28th 2012, 12:51pm

thanks that worked!!