SHOW:
|
|
- or go back to the newest paste.
1 | var filePicker = Qt.createQmlObject("import QtQuick.Dialogs 1.2; FileDialog { | |
2 | title: qsTr(\"Select a file\") | |
3 | selectMultiple: true | |
4 | property bool once: false | |
5 | onAccepted: { | |
6 | if (once) { | |
7 | return | |
8 | } | |
9 | once = true | |
10 | for (var i = 0; i < fileUrls.length; i++) { | |
11 | - | sendFile(fileUrls[i]) |
11 | + | console.log(fileUrls[i]) |
12 | } | |
13 | destroy() | |
14 | } | |
15 | }", window, "filePicker"); | |
16 | filePicker.open() |