Narek
Narek

Reputation: 39871

Qt - add a hyperlink to a dialog

Is there a way to add a clickable hyperlink in a Qt Dialog? I.e. it should look like a hyperlink (blue text), and when you click on it, it should open the hyperlink in the browser. Something like that:

enter image description here

Upvotes: 29

Views: 11863

Answers (1)

Kamil Klimek
Kamil Klimek

Reputation: 13130

Use QLabel::setOpenExternalLinks(bool), and set text on label <a href="yourlink">link text</a>.

Upvotes: 37

Related Questions