Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Hyperlinks in Qt Quick Text not working with Google Chrome
Forum Updated to NodeBB v4.3 + New Features

Hyperlinks in Qt Quick Text not working with Google Chrome

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 408 Views 2 Watching
  • 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.
  • A Offline
    A Offline
    AndreAnjos
    wrote on last edited by AndreAnjos
    #1

    Hi all,

    Having an issue with onLinkActivated: Qt.openUrlExternally(link), where it does not open the browser.
    If I test the link by onLinkActivated: console.log(link) it triggers and shows the correct link. So something is going on with Qt.openUrlExternally(link), which I can't figure it out.
    Could it be because the browser is running in the background?

    I've taken the code from this website: https://blog.shantanu.io/2015/02/15/creating-working-hyperlinks-in-qtquick-text/

    I'm using QtQuick 2.3 in conjunction with Python 3.6.8 in windows 10.

    Thank you all in advance! :)

    Andre

    P 1 Reply Last reply
    0
    • A AndreAnjos

      Hi all,

      Having an issue with onLinkActivated: Qt.openUrlExternally(link), where it does not open the browser.
      If I test the link by onLinkActivated: console.log(link) it triggers and shows the correct link. So something is going on with Qt.openUrlExternally(link), which I can't figure it out.
      Could it be because the browser is running in the background?

      I've taken the code from this website: https://blog.shantanu.io/2015/02/15/creating-working-hyperlinks-in-qtquick-text/

      I'm using QtQuick 2.3 in conjunction with Python 3.6.8 in windows 10.

      Thank you all in advance! :)

      Andre

      P Offline
      P Offline
      pderocco
      wrote on last edited by
      #2

      @AndreAnjos
      What happens when the browser isn't running in the background?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AndreAnjos
        wrote on last edited by AndreAnjos
        #3

        Hi @pderocco,

        It happens the same, with the slight difference that it shows the loading circle for a fraction of a second. But never ends up opening the browser.

        Is there anything else that Qt.openUrlExternally(link) relies on?

        Thank you for your help! :)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AndreAnjos
          wrote on last edited by
          #4

          I just found part of the issue... My default browser is Chrome and after changing it to Firefox and Edge, both times work.

          So what is the deal with Google Chrome?

          Cheers!

          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