Hi,
I have simple question, but still can't find the 100% solution.
I need to change label's text color, let's say to red. I am changing the palette, but the text is always black. Do I have to use stylesheets for this?
Thanks,
Kacper
Hi,
I have simple question, but still can't find the 100% solution.
I need to change label's text color, let's say to red. I am changing the palette, but the text is always black. Do I have to use stylesheets for this?
Thanks,
Kacper
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
No, modifying the palette is fine. Can we see the code?
Of course. Here's the code:
Qt Code:
{ setVisible(visible); setMouseTracking(true); QPalette palette; setPalette(palette); }To copy to clipboard, switch view to plain text mode
The code looks fine, I suppose. Maybe the problem lays somewhere else.
Last edited by maverick_pol; 27th February 2008 at 09:49.
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
maverick_pol (27th February 2008)
Bookmarks