Include QApplication where needed. Fixes #47
Merge pull request #48 from jleclanche/master

Include QApplication where needed. Fixes #47