<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[New error building with MS Visual Studio]]></title><description><![CDATA[<p dir="auto">I just updated to MS Visual Studio 18.6 (May 2026 update).</p>
<p dir="auto">Now I am getting:</p>
<pre><code>3&gt;C:\Qt\6.10.0\msvc2022_64\include\QtGui\qguiapplication.h(168,10): error C2220: the following warning is treated as an error
3&gt;  (compiling source file 'pch.cpp')
3&gt;C:\Qt\6.10.0\msvc2022_64\include\QtGui\qguiapplication.h(168,10): warning C4996: 'QCoreApplication::compressEvent': This feature will be removed in Qt 7
</code></pre>
<p dir="auto">which is a warning I have never seen before, and as I compile with /Wx, it errors.  How do I shut this up.</p>
<p dir="auto">D.</p>
]]></description><link>https://forum.qt.io/topic/164668/new-error-building-with-ms-visual-studio</link><generator>RSS for Node</generator><lastBuildDate>Sat, 23 May 2026 09:08:20 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164668.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 May 2026 16:43:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to New error building with MS Visual Studio on Fri, 15 May 2026 08:17:56 GMT]]></title><description><![CDATA[<p dir="auto">You can also define QT_NO_DEPRECATED_WARNINGS. Don't know is it better approach or worth.</p>
]]></description><link>https://forum.qt.io/post/838256</link><guid isPermaLink="true">https://forum.qt.io/post/838256</guid><dc:creator><![CDATA[Ipse]]></dc:creator><pubDate>Fri, 15 May 2026 08:17:56 GMT</pubDate></item><item><title><![CDATA[Reply to New error building with MS Visual Studio on Wed, 13 May 2026 22:39:02 GMT]]></title><description><![CDATA[<p dir="auto">Face-palm! Doh! Of course!</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/post/838230</link><guid isPermaLink="true">https://forum.qt.io/post/838230</guid><dc:creator><![CDATA[Perdrix]]></dc:creator><pubDate>Wed, 13 May 2026 22:39:02 GMT</pubDate></item><item><title><![CDATA[Reply to New error building with MS Visual Studio on Wed, 13 May 2026 21:43:36 GMT]]></title><description><![CDATA[<p dir="auto">Those pragmas will work, but you have a chicken and egg problem here. <code>Q_CC_MSVC</code> is defined in one of those Qt headers, so it's not available at the top yet and thus your warning disabling isn't happening.</p>
<p dir="auto">You can replace <code>Q_CC_MSVC</code> with e.g. <code>_MSC_VER</code> or any other non-Qt way of identifying MSVC.</p>
]]></description><link>https://forum.qt.io/post/838229</link><guid isPermaLink="true">https://forum.qt.io/post/838229</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Wed, 13 May 2026 21:43:36 GMT</pubDate></item><item><title><![CDATA[Reply to New error building with MS Visual Studio on Wed, 13 May 2026 17:03:36 GMT]]></title><description><![CDATA[<p dir="auto">I tried wrapping the Qt includes in pch.h in:</p>
<pre><code>#if defined (Q_CC_MSVC)
#pragma warning(push)
#pragma warning(disable: 4996)
#endif
   : Qt includes here  ...
#if defined (Q_CC_MSVC)
#pragma warning(pop)
#endif

but that changed nothing
</code></pre>
]]></description><link>https://forum.qt.io/post/838226</link><guid isPermaLink="true">https://forum.qt.io/post/838226</guid><dc:creator><![CDATA[Perdrix]]></dc:creator><pubDate>Wed, 13 May 2026 17:03:36 GMT</pubDate></item></channel></rss>