When I run my project in console window I get this problem:

QWidget: Cannot create a QWidget when no GUI being used

What that supose to mean. I use evething like ussualy plus I have working example.