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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.2.2
    • None
    • Windows x64 VS 2019
    • Windows

      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.

        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.

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes