Hi all, I'm using Qt 6.6.1 developing a Qt Quick application, and I am encountering an issue where opening a FileDialog crashes my application.
Testcase: import QtQuick import QtQuick.Dialogs Window { visible: true FileDialog {id: fileDialog} Component.onCompleted: fileDialog.open() } produces the following output: 10:13:52: Starting build-test-qml-filedialog-Desktop_arm_darwin_generic_mach_o_64bit-Debug/ apptest-qml-filedialog.app/Contents/MacOS/apptest-qml-filedialog... QML debugging is enabled. Only use this in a safe environment. 2024-02-26 10:13:53.584 apptest-qml-filedialog[82148:13866321] +[CATransaction synchronize] called within transaction 2024-02-26 10:13:53.895 apptest-qml-filedialog[82148:13866321] +[CATransaction synchronize] called within transaction 10:13:55: build-test-qml-filedialog-Desktop_arm_darwin_generic_mach_o_64bit-Debug/ apptest-qml-filedialog.app/Contents/MacOS/apptest-qml-filedialog crashed. Note that the issue is not strictly related to QML/QtQuick, as I can trigger the same error/crash with a C++ Widgets app: QApplication a(argc, argv); QFileDialog f; QString fileName = f.getOpenFileName(0, "Select file...", ".", ".txt"); return a.exec(); which produces a similar output: 10:06:37: Starting build-test-qfiledialog-Desktop_arm_darwin_generic_mach_o_64bit-Debug/ test-qfiledialog.app/Contents/MacOS/test-qfiledialog... 2024-02-26 10:06:38.717 test-qfiledialog[72234:13846699] +[CATransaction synchronize] called within transaction 10:06:39: build-test-qfiledialog-Desktop_arm_darwin_generic_mach_o_64bit-Debug/ test-qfiledialog.app/Contents/MacOS/test-qfiledialog crashed. It seems the issue is related to using native dialogs, so it is particularly critical on Qt Quick, where the non-native dialog is somewhat broken and not usable. Anyone have this issue? Cheers, Federico Ferri
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest