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

        1. qtbug91086.zip
          2 kB
          Nahomi Gröhn
        2. qtbug91086-5-13-2-good.png
          15 kB
          Nahomi Gröhn
        3. qtbug91086-5-15-2-bad.png
          20 kB
          Nahomi Gröhn

        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