Misc hacking to get QML dialog parented and centered main window. Fail.