import QtQuick 2.0 import QtQuick.Controls 1.4 import QtQuick.Dialogs 1.2 Item { Row { id: selector Text { text: "Active repository" + repoOpenDialog.fileUrl } Button { text: "Choose..." onClicked: repoOpenDialog.open() } } Column { anchors.top: selector.bottom Repeater { model: _handler.repositories Text { text: model.repoName } } } FileDialog { id: repoOpenDialog folder: "." selectFolder: true selectMultiple: false onAccepted: { _handler.open(repoOpenDialog.fileUrl) } } }