Hello, I have a QLabel with a link in it inserted with rich text. How would I change the color of that link? Changing the color property of QLabel doesn't seem to do anything. Thanks in advance!
Hello, I have a QLabel with a link in it inserted with rich text. How would I change the color of that link? Changing the color property of QLabel doesn't seem to do anything. Thanks in advance!
You can use CSS to change the color.
Qt Code:
label->setText("<a href=\"http://www.qtcentre.org\" style=\"color: red;\">Qt Centre</a>");To copy to clipboard, switch view to plain text mode
codeslicer (15th April 2008)
Wow! So obvious yet so discreet. Thanks!
Bookmarks