QtQuick Application cursh ,When open the MacOS system virtual keyboard.
Unsolved
QML and Qt Quick
-
Hi,
When I testing my QtQuick Application on MacOS, I found a weird crash issue.I open the MacOS system virtual keyboard and my qml Window was try to creat a modal Dialog dynamically, when I close and call destroy() the modal Dialog Window, my application was crashed. My Qt version is 5.15.2
here is my code example:main.qml Window{ id: mainWindow flags: Qt.FramelessWindowHint | Qt.Window Button{ onClicked:{ var component = Qt.createComponent("DialogWindow.qml"); var win = component.createObject(mainWindow); win.show(); } } } DialogWindow.qml Window{ id: dialogWindow modality: Qt.ApplicationModal flags: Qt.FramelessWindowHint | Qt.Dialog Button{ onClicked:{ dialogWindow.close(); dialogWindow.destroy(); } } }
-
I am just guessing.
On the one hand, the stack trace doesn’t show a crash in a Qt library. On the other hand, the button destroys its parent in a slot. That’s brave. I’d try to move the destruction elsewhere, or omit it just to see if that’s the issue.