Ok, for those interested, I got the answer:
- Disable the "
openExternalLinks
" property of theQLabel
- Connect the signal linkActivated of the
QLabel
to your handler.
That's all: linkActivated
gives you the URL that the link refers to in argument, so my pseudo code works perfectly.
// header
private slots:
void on_description_linkActivated(const QString &link);
// cpp
void KernelBuild::on_description_linkActivated(const QString &link)
{
if( link == "#browse_output" ){
on_outfilebtn_clicked();
}
}