Get rid of "QtGui/" from the include line. Also make sure your project file contains a QT+=widgets line.