You are not logged in.

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!!