Moved Qt App init into main_function
Merge branch 'master' into version-1.2