Try to dynamically detect the path to main.qml.