How solve “Qt: Untested Windows version 10.0 detected!”

I'm trying to use <strong>cmake</strong> for a project that <strong>has a lot of dependencies</strong>. I updated to <strong>Windows 10</strong> some week ago, starting from Windows 7, and now I get this error.

How can I solve this problem considering I won't downgrade to Windows 7?

Thanks to all


I think you use Qt version that was released before Windows 8 release. It might be Qt 4.8.x. To suspend the warning you need to update your Qt version or simply ignore that warning.


If the warning message makes real trouble, you can try to filter it out in the following way:

#include <qapplication.h> #include <stdio.h> #include <stdlib.h> void myMessageOutput(QtMsgType type, const char *msg) { switch (type) { case QtDebugMsg: fprintf(stderr, "Debug: %s\n", msg); break; case QtWarningMsg: if (strstr(msg, "Qt: Untested Windows version") == 0) { // Print warning if it is not "Qt: Untested Windows..." fprintf(stderr, "Warning: %s\n", msg); } break; case QtCriticalMsg: fprintf(stderr, "Critical: %s\n", msg); break; case QtFatalMsg: fprintf(stderr, "Fatal: %s\n", msg); abort(); } } int main(int argc, char **argv) { qInstallMsgHandler(myMessageOutput); QApplication app(argc, argv); ... return app.exec(); }

人吐槽 人点赞



用户名: 密码:
验证码: 匿名发表


查看评论:How solve “Qt: Untested Windows version 10.0 detected!”