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

REG: Attached ToolTips shrink

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.2.0 RC
    • 5.15.6, 6.2.0 Alpha
    • Quick: Controls 2
    • None

    Description

      import QtQuick 2.0
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          id: window
          objectName: "window"
          width: 1200
          height: 800
          title: "tooltip-issue"
          visible: true
      
          Component.onCompleted: {
              contentItem.parent.objectName = "applicationWindowRootItem"
              contentItem.objectName = "applicationWindowContentItem"
          }
      
          header: ToolBar {
              id: root
              objectName: "toolBar"
      
              Row {
                  anchors.fill: parent
      
                  ToolButton {
                      id: canvasSizeToolButton
                      objectName: "aButton"
      
                      text: "A"
                      width: 50
                      height: 50
      
                      ToolTip.text: qsTr("Short text")
                      ToolTip.visible: hovered
                  }
      
                  ToolButton {
                      id: imageSizeToolButton
                      objectName: "bButton"
      
                      text: "B"
                      width: 50
                      height: 50
      
                      ToolTip.text: qsTr("This is some medium text")
                      ToolTip.visible: hovered
                  }
      
                  ToolButton {
                      id: cropToSelectionToolButton
                      objectName: "cButton"
      
                      text: "C"
                      width: 50
                      height: 50
      
                      ToolTip.text: qsTr("This is some reaaaaaaaaally looooooooooooooong text")
                      ToolTip.visible: hovered
                  }
              }
          }
      }
      

      This is a regression caused by https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/347444, which went into 6.2 and was cherry-picked to 6.1 and 5.15.

      Attachments

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes