12-27-2012 05:48 AM
from the messages the Viewer should come up
but there's an error - what is at main.qml:120
12-27-2012 05:57 AM
it is:
attachedObjects: [
FilePicker {
id: picker
property string selectedFile
title: qsTr("File Picker")
mode: pickerMode.selectedValue
type: pickerType.selectedValue
viewMode: pickerViewMode.selectedValue
sortBy: pickerSortBy.selectedValue
sortOrder: pickerSortOrder.selectedValue
onFileSelected: {
selectedFile = selectedFiles[0]
myClass.invokeBoundMediaPlayer(selectedFile);
}
}
]
12-27-2012 06:00 AM
which line is 120 ?
12-27-2012 06:02 AM
selectedFile = selectedFiles[0]
12-27-2012 06:13 AM
no idea why it fails
my code in qml is similar, per ex.
FilePicker {
id: picker
property string selectedFile
title: qsTr("File Picker")
mode: FilePickerMode.Picker
type: FileType.Other
sortBy: FilePickerSortFlag.Default // pickerSortBy.selectedValue
sortOrder: FilePickerSortOrder.Default // pickerSortOrder.selectedValue
onFileSelected: {
selectedFile = selectedFiles[0]
12-27-2012 06:25 AM
Could you give me the whole code about this function?
if you update the old opensource project?
12-27-2012 06:58 AM
last changes are pushed to OpenDataSpace