Using a system-default File Dialog in QML
Michał 'rysiek' Woźniak
rysiek at fwioo.pl
Sat Apr 13 17:56:25 UTC 2013
Hi again,
I managed to load and show the dialog, now am having problems handling
the signals. What is the correct way of handling them? I tried:
fd = new SaveFileDialog()
fd.onAccepted = function(fd) {
console.log('exportTaskConfig(): file dialog accepted')
console.log('+- file selected: ' + fd.file)
}
...then...
fd.accepted = function(fd) {
console.log('exportTaskConfig(): file dialog accepted')
console.log('+- file selected: ' + fd.file)
}
...then...
fd.onAccepted: {
console.log('exportTaskConfig(): file dialog accepted')
console.log('+- file selected: ' + fd.file)
}
The first two did not seem to work; the last one is apparently
syntactically incorrect.
--
Pozdrawiam
Michał "rysiek" Woźniak
Fundacja Wolnego i Otwartego Oprogramowania
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130413/ba126981/attachment.sig>
More information about the Plasma-devel
mailing list