Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt - add a hyperlink to a dialog

Tags:

c++

hyperlink

qt

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

like image 583
Narek Avatar asked Mar 17 '10 19:03

Narek


1 Answers

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

like image 171
Kamil Klimek Avatar answered Oct 19 '22 13:10

Kamil Klimek