import QtQuick 2.12 import Qt.labs.platform 1.1 import QtQuick.Controls 2.12 ApplicationWindow { width: 540 height: 960 visible: true MenuBar { Menu { title: qsTr("&File") MenuItem { text: "Open..." onTriggered: folderDialog.open() } } } FolderDialog { id: folderDialog folder: StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0] onAccepted:console.log(folder) } }