"I am running a qt 4.7 embedded widget program in qt 5."
I don't understand.

i get the following errors with headers:

#include <QtGui/QDesktopWidget>
#include <QtGui/QAbstractButton>
What errors?

Do you mean you have some code written using qt4.7 and now you want to compile it with qt5? If so, google "porting qt4 to qt5".