Error when trying to include <QSettings> in MFC application
When i try to
#include <QSettings>
in my MFC app I get the following errors
Cannot open include file: 'QtCore/qobject.h': No such file or directory
I want to use the QSetting
for my MFC application, so how should I code it to resolve the error and allow 开发者_JAVA百科me to use the QSettings
. Thanks!
If you on visual studio, add %QTDIR%/include to your include path. %QTDIR% is the root directory for qt installation, for example "C:\Qt\4.7.3"
精彩评论