Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.10.1
-
None
-
* Qt Quick 2.10 application on Qt 5.10 (installed from binaries)
* Fedora 26 (KDE)
Description
The (not properly documented) onRejected is not emitted when you close the FileDialog using the title bar cross instead of the Cancel button.
To reproduce this you can use the code below:
import QtQuick 2.10 import QtQuick.Controls 2.3 import QtQuick.Dialogs 1.3 ApplicationWindow { visible: true FileDialog { id: fileDialog folder: shortcuts.home onAccepted: { console.log("You chose: " + fileDialog.fileUrls) Qt.quit() } onRejected: { console.log("Rejected") Qt.quit() } Component.onCompleted: visible = true } }