Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt for WebAssembly does not support hyperlinks?



  • Hi,
    I created a qml application, which I compiled with emscripten to webassembly. This is working, but in my application I have some web links:

    Text {
                id: linkElement
                text: "<a href="+link_from_model+">info</a>"
                textFormat: Text.RichText
                anchors.left: parent.left
                anchors.leftMargin: 521
                anchors.top: parent.top
                anchors.topMargin: 10
                font.pixelSize: 16
                onLinkActivated: {
                    console.log("link activated",link_from_model)
                    Qt.openUrlExternally(link)
                }
    

    If I compile for Desktop, a click will open a browser and open the link. If I open the web assembly application in my browser, a click on the above text does not open the link.

    Is there a way to make it work?



  • The answer is: It does not yet support hyperlinks. However, it will very soon, maybe even the next beta.


Log in to reply