That was it! I was creating QApplication afterwards. Thanks a lot!