Qt 6.11 is out! See what's new in the release
blog
New error building with MS Visual Studio
-
I just updated to MS Visual Studio 18.6 (May 2026 update).
Now I am getting:
3>C:\Qt\6.10.0\msvc2022_64\include\QtGui\qguiapplication.h(168,10): error C2220: the following warning is treated as an error 3> (compiling source file 'pch.cpp') 3>C:\Qt\6.10.0\msvc2022_64\include\QtGui\qguiapplication.h(168,10): warning C4996: 'QCoreApplication::compressEvent': This feature will be removed in Qt 7which is a warning I have never seen before, and as I compile with /Wx, it errors. How do I shut this up.
D.
-
Those pragmas will work, but you have a chicken and egg problem here.
Q_CC_MSVCis defined in one of those Qt headers, so it's not available at the top yet and thus your warning disabling isn't happening.You can replace
Q_CC_MSVCwith e.g._MSC_VERor any other non-Qt way of identifying MSVC.