[PySide] controlling link colour in QLabel

Frank Rueter | OHUfx frank at ohufx.com
Wed Aug 15 09:36:06 CEST 2012


Hi all,

I'm wondering if it's posisble to control the link colour in a little 
html snippet inside a QLabel.
I've got something like this:


QLabel.setText('<b>LATEST NEWS:</b>' + newsText)

Where "newsText" may or may not include a link (it's a html snippet that 
I get from an online database which may change frequently).

The QLabel shows the embedded links in the default blue and I've read 
that you can change this using the palette, but I really only want to 
change the link colour in this one widget. Is there a different way?

Cheers,
frank



More information about the PySide mailing list