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?
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?
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.