Made compatable with qt5, should still work with qt4. Followed http://www.qtcentre.org/threads/53452-QtGui-QApplication-No-such-file-or-directorty