add this line to your pro file
QT += opengl