Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt for WebAssembly does not support hyperlinks?

Qt for WebAssembly does not support hyperlinks?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 305 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maxwell31
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxwell31
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved