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

[Reg] QML ToolTip's width is incorrect when the text includes line break

    XMLWordPrintable

Details

    • macOS, Windows

    Description

      It seems when there's a line break in the text, the width of tooltip is calculated as if there's no break.

      The problem can be seen by the following code.

      ToolTip.text: "<p><b>Title</b></p><p>Line Text Text Text Text<br><p>Line Text Text Text Text<br>"
      

      or

      ToolTip.text: "Title \n Text Text Text Text \n Text Text Text Text"
      

      This seems to be a regression bug that happened between Qt5.13.2 (Good) and Qt5.14.0 (Bad). See qtbug91086-5-13-2-good.png.

      How to reproduce :
      Use qtbug91086.zip

      Attachments

        Issue Links

          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
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes