#include <QtGui/QDesktopWidget>
#include <QtGui/QAbstractButton>
I guess I never see this problem, because I have never used the "QtGui/" qualifier. I always simply do this:

#include <QDesktopWidget>
#include <QAbstractButton>
and adjust the include paths in the project settings.