I am running my app in profile mode (it happens in release too).
I ran the QML profiler which highlighted
in my app as taking 42 seconds duration.
I removed this line, which appeared to fix it, but then on another occasion the app got stuck again on an internal line in DefaultFileDialog.qml:212
Sometimes its lightning fast.