i got it working.

when creating a new project choose Qt project instead of C++.

File > New > Project > Qt Gui Project