[Qt-interest] set color of richtext link in QLabel from css
Arnold Krille
arnold at arnoldarts.de
Mon May 18 09:53:00 CEST 2009
On Monday 18 May 2009 02:49:04 wim.delvaux at adaptiveplanet.com wrote:
> I have a QLabel with a <a href...> content. (URL)
> I read that I had to use the a { ... } css to set the color. this does not
> seem to work.
> What Is wrong ?
At least here on linux the link-color is defind in the systems color-scheme.
Change it and you will get lost in color-theme-hell. Because then you also
have to care about background and text-color of your label. Otherwise you
might end up with blue link-text on a blue background. And it will be your app
that gets blamed (rightly so).
Either not mess with the link-color at all and just ust the systems defaults
or at least define it only relativ to the system-colors. But even when you set
it to textcolor.light(), you might get into trouble when that is similar to
the background color.
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090518/1e981e66/attachment.bin
More information about the Qt-interest-old
mailing list