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?

1 Answer 1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .