Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
6.5.2, 6.5.6
-
Linux Wayland; Windows 10 22H2 + 1080p screen resolution +100% scaling
Description
Code
import QtQuick.Dialogs import QtQuick.Controls.Material ApplicationWindow { width: 400 height: 300 visible: true Button { text: "Open dialog" onClicked: dlg.open() } MessageDialog { id: dlg title: "Save Project" text: "Save changes?" informativeText: "Why is this line missing from the dialog?" buttons: MessageDialog.Yes | MessageDialog.No } }
Outcomes
On the first click, we get binding loop warnings and the informativeText is not shown (Not expected):
qrc:/qt-project.org/imports/QtQuick/Dialogs/quickimpl/qml/MessageDialog.qml:12:1: QML MessageDialog: Binding loop detected for property "implicitHeight" qrc:/qt-project.org/imports/QtQuick/Dialogs/quickimpl/qml/MessageDialog.qml:12:1: QML MessageDialog: Binding loop detected for property "implicitHeight"
On the second click, the informativeText does appear (Expected):
Notes
- Affects Qt 6.5.6, but not Qt 6.7.2
- Affects Material/Fusion styles, but not Basic/Universal styles
- The problem does not occur if the window is smaller than the dialog when the button is first clicked
Original Report
Using this qml, pass a certain number of characters, you get,
qrc:/qt-project.org/imports/QtQuick/Dialogs/quickimpl/qml/MessageDialog.qml:12:1: QML MessageDialog: Binding loop detected for property "implicitHeight"
If you remove the ` more` part, no more errors.
Attachments
Issue Links
- is duplicated by
-
QTBUG-123793 Material style MessageDialog does not show text under specific conditions
-
- Closed
-