Hacked together Qt Project as template