PDA

View Full Version : Turn off the underline when using a QLabel as a link



gmat4321
8th April 2010, 15:35
I have a QLabel setup as a hyperlink. The default is to underline it. Does anyone know how to turn off the underline?

squidge
8th April 2010, 20:04
Have you tried to use a stylesheet?

gmat4321
9th April 2010, 14:01
I have not looked at a style sheet. I've never used style sheets, do you know what the style sheet would look like?

JohannesMunk
10th April 2010, 13:31
label.setText("<a href=url style=\"text-decoration:none;\">here</a>");

HIH

Johannes