PDA

View Full Version : GetSysColor and SetSysColor



phillip_Qt
20th February 2008, 13:00
Hi All
CAn any body tell me what is the equivalent of windows API GetSysColor() and SetSysColor() in Qt.?


Thank You All.

jacek
20th February 2008, 13:15
See QPalette.

phillip_Qt
27th February 2008, 05:06
See QPalette.

I went through the QPallet , but there is no option to get system colour.

ChristianEhrlicher
27th February 2008, 06:50
What is 'System Color' on e.g . Linux? Imo there's no equivalent there - so no Qt function to access those informations. Also I don't know why you should need them at all.

jacek
27th February 2008, 14:08
I went through the QPallet , but there is no option to get system colour.
Please define what a "system colour" is and I'm sure we'll find something in the QPalette.

wysota
27th February 2008, 14:29
Based on anothe thread I can assume that "system colours" are "default palette" thus every role in QPalette is a "system colour" only on a local basis (widget wide).