Qt - add a hyperlink to a dialog

c++, hyperlink, qt

Solution

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

Problem

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:

Original source