I'm using Qt Creator, and this line is generated automatically by the Qt Creator:
#include <QtGui/QApplication>
But, why am I getting this message?
QtGui/QApplication: No such file or directory
I had got same problem. From visual studio using Command Prompt(2010), I changed the path of prompt to where my Qt resides i.e. C:\Qt. There I set QTDIR environment variable.
c:\Qt> setx QTDIR C:\Qt
Then message was displayed:
SUCCESS: Specified value was saved.
Make sure VS is closed during this. When you reopen it, all headers will be detected.
I hope my solution will help anyone someday. Cheers :)
PATH:C:\Qt\2010.05\bin. And, when I go to:Tools ---> Options... ---> Qt4in theQt Creatorin theQt versionstab underAuto-detectedit saysQt in PATH <not found>. What should I do in this case?The Qt version is invalid: Could not determine the path to the binaries of the Qt installation, maybe the qmake path is wrong?&The qmake command "<not found>" was not found or is not executable.