PDA

View Full Version : QLabel colours



TheKedge
14th May 2007, 17:07
sorry about the trivial question::

how do I change the border colour of a QLabel without changing the text colour?
(pseudo code)
QPalette p.setColor ( QPalette::WindowText, Yellow);
Qlabel setPalette(p),

will draw text yellow, but the border is drawn yellow too.

thanks
K

I can do it using style sheets, but is there a 'standard' way?

wysota
14th May 2007, 17:46
What do you mean by the border? The frame? I don't think changing the text colour changes the frame colour... Could you post a minimal compilable example reproducing the problem?