Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to capture Qlabel link text and redirect it to my use
umen242 last edited by
i have simple QLable that holds html link , now i need to be able to detect that user click on the link
and do something , and prevent the link to open in external browser .
where to start ?
lgeyer last edited by
Set "QLabel::openExternalLinks":http://qt-project.org/doc/qt-4.8/qlabel.html#openExternalLinks-prop to false and connect to the "QLabel::linkActivated()"::http://qt-project.org/doc/qt-4.8/qlabel.html#linkActivated signal.