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

Tooltip bounding box larger than necessary when text contains return carriage

XMLWordPrintable

    • Windows

      Attached the sample code. Pressing the button in the new created window will show the tooltip

      Workaround is to use a standalone tooltip item and reset its contentWidth/Height according to the text size

      ToolTip {
      visible: parent.pressed
      text: "Tool tip<br>width test"
      Text{
      visible: false
      id:a
      text: "Tool tip<br>width test"
      }
      contentHeight: a.implicitHeight
      contentWidth: a.implicitWidth
      delay:500
      }
      

        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
            yifei Yi Fei (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes