开发者

Error when trying to include <QSettings> in MFC application

开发者 https://www.devze.com 2023-03-21 01:44 出处:网络
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

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"

0

精彩评论

暂无评论...
验证码 换一张
取 消