2

I'd like to open a browser window to display the URL received by a TextEdit onLinkActivated signal.

Is it possible to perform such call from the QML application?

2

You just need to call Qt.openUrlExternally(link) in the onLinkActivated signal handler:

onLinkActivated:  {
    Qt.openUrlExternally(link)
}

It will attempt to open the specified target url in an external application, based on the user's desktop preferences.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.