Apparently Windows QML doesn't know what 'double' is, so use qreal. qreal is now double on all platforms since Qt5.2. Also, check if dialog found local file before using it.