Moved Qt App init into main_function