- 
    
Bug
 - 
    Resolution: Done
 - 
    
P1: Critical
 - 
    5.15.6, 6.2.0 Alpha
 - 
    None
 
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.
- is duplicated by
 - 
                    
QTBUG-95291 QML Tooltip width get too small after hovering multiple times
-         
 - Closed
 
 -         
 
- relates to
 - 
                    
QTBUG-101704 ToolTip calculates its width incorrectly
-         
 - In Progress
 
 -         
 
- resulted from
 - 
                    
QTBUG-83630 Qt Quick Control 2 Tooltip can be way too big when you have newlines
-         
 - Closed
 
 -