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

[REG 4.8.7 -> 5.*]nobr tag is ignored in QTextBrowser when wrap mode set to QTextOption::WordWrap

    XMLWordPrintable

Details

    Description

      The user is created a simple application with QTextBrowser and she wants to set some html based content to display in QTextBrowser. The user finds in documentation that nobr tag is supported and can be in her content. However, the user finds that nobr tag is ignored by the QTextBrowser and text gets broken when QTextOption::WordWrap set as wrap mode.

      Expected behaviour:
      Text line is not broken.

      What actually happens:
      Text line is broken.

      Steps to reproduce:
      1. Run the application attach
      2. In the above text window (QTextbrowser) you will notice the text is broken.
      3. In the text line below is shown a HTML code of what was passed to the QTextBrowser.

      This issue was confirmed on Ubuntu 14.04 with Qt 5.4* 5.5* and 5.6 beta.

      Attachments

        1. html_issue.tar.gz
          1 kB
          Dmitry Nikolaev

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              kileppal Kimmo Leppälä
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes