December 13, 2010

ivan.todorovich ivan.todorov..
Lab Rat
96 posts

Access Widget Palette Colors from QSS StyleSheet

 

Is it possible? IE: background-color: LinkVisited;

 Signature 

o_o Sorry for my rusted english.

4 replies

December 13, 2010

Gerolf Gerolf
Area 51 Engineer
3210 posts

afaik not really.
You can set some colors, but not access the palette

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

December 13, 2010

Gerolf Gerolf
Area 51 Engineer
3210 posts

see Qt Style Sheet reference [doc.qt.nokia.com]
Here you see, which color you can set.

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

December 13, 2010

peppe peppe
Ant Farmer
1025 posts
ivan.todorovich wrote:
Is it possible? IE: background-color: LinkVisited;

Yes: use the PaletteRole http://doc.trolltech.com/latest/stylesheet-reference.html#paletterole

 Signature 

Software Engineer
KDAB (UK) Ltd., a KDAB Group company

December 14, 2010

ivan.todorovich ivan.todorov..
Lab Rat
96 posts
peppe wrote:
ivan.todorovich wrote:
Is it possible? IE: background-color: LinkVisited;

Yes: use the PaletteRole http://doc.trolltech.com/latest/stylesheet-reference.html#paletterole

Thanks!! That’s exactly what I needed :)

 Signature 

o_o Sorry for my rusted english.

 
  ‹‹ undefined reference to ’_imp__ZN9QGLWidgetC2ERQ9QGLFormat...’      SQLite date field ››

You must log in to post a reply. Not a member yet? Register here!