have you added "QT += webkit" in the .pro file