Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-118595

Openning external links in QTextEdit does not work on Ubuntu 22

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 6.2.2
    • GUI: Text handling
    • None
    • Linux/X11

    Description

      Opening external link in QTextEdit  does not work on Ubuntu 22
      but the same code works on Ms Windows.

      --{}{}O{}{}--

      html option  enabled for QTextEdit component
      openExternalLinks set to true for  both of QWidgetTextControl child and QTextEdit component itself
      TextInteractionFlags set to (Qt::TextEditable | Qt::LinksAccessibleByMouse | Qt::TextEditorInteraction | Qt::TextBrowserInteraction )

      --{}{}O{}{}--

      Sample QTextEdit Content  is : 

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
      <html>
      <head>
      <meta name="qrichtext" content="1" />
      <meta charset="utf-8" />
      <style type="text/css">
      p, li { white-space: pre-wrap; } 
      </style>
      </head>
      <body style=" font-family:'verdana'; font-size:14pt; font-weight:400; font-style:normal;">
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
      <a href="http://www.google.com">
      <span style=" text-decoration: underline; color:#0000ff;">google</span>
      </a>
      </p>
      </body>
      </html>

      ----- end -----

      When click on the link , and error dumped in Application Output of Qt Creator :

      gio: file:///home/hk/build-innovirtual-phase0-Desktop_Qt_6_2_2_GCC_64bit-Debug/www.google.com: Error when getting information for file “/home/hk/build-innovirtual-phase0-Desktop_Qt_6_2_2_GCC_64bit-Debug/www.google.com”: No such file or directory

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            hkazaz Hakan Kazaz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes