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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.2
    • None
    • Windows x64 VS 2019
    • 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. main.cpp
          0.2 kB
          Doug Rogers
        2. QtTstTextBrowser.cpp
          0.6 kB
          Doug Rogers
        3. QtTstTextBrowser.h
          0.3 kB
          Doug Rogers
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            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