Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How solve "Qt: Untested Windows version 10.0 detected!"

I'm trying to use cmake for a project that has a lot of dependencies. I updated to Windows 10 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

like image 846
Gennaro Avatar asked Oct 24 '25 18:10

Gennaro


1 Answers

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.

UPDATE

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();
 }
like image 148
vahancho Avatar answered Oct 26 '25 12:10

vahancho



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!