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

QTextBrowser does not open links and clears window when link is selected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 6.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows x64 VS 2019
    • Platform/s:
      Windows

      Description

      QTextBrowser fails to open links and clears the text when the link is selected.

      QTextBrowser *searchHelp = new QTextBrowser; 
      QString systemInfo; 
      QTextStream str(&systemInfo); 
      str << "<p>Search file names for specific text.&nbsp; <a href=\"https://perldoc.perl.org/perlre#DESCRIPTION\">Regular Expressions</a> are " "supported.&nbsp;&nbsp;</p>"; 
      searchHelp->setOpenLinks(true); 
      searchHelp->setHtml(systemInfo); 
      searchHelp->show(); 
      

      Example code is attached.

        Attachments

        1. QtTstTextBrowser.h
          0.3 kB
        2. QtTstTextBrowser.cpp
          0.6 kB
        3. main.cpp
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            doug_rogers Doug Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes