<?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[Compare two QVariant]]></title><description><![CDATA[<p dir="auto">Hi guys, in my legacy there compare two QVariant but now operators like &lt;, &gt;, &lt;=, &gt;= was deprecated. Can anyone help me?</p>
<pre><code>QVariant q1(1);
QVariant q2(2);

bool result = q1 &lt; 12; // operator &lt; deprecated.
</code></pre>
<p dir="auto">Thanks a lot!</p>
]]></description><link>https://forum.qt.io/topic/139594/compare-two-qvariant</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 03:18:37 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139594.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Sep 2022 04:14:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compare two QVariant on Tue, 27 Sep 2022 06:04:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexey-serebryakov">@<bdi>Alexey-Serebryakov</bdi></a> Then you will need to get the actual data from both variants and compare it.</p>
]]></description><link>https://forum.qt.io/post/730290</link><guid isPermaLink="true">https://forum.qt.io/post/730290</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 27 Sep 2022 06:04:58 GMT</pubDate></item><item><title><![CDATA[Reply to Compare two QVariant on Tue, 27 Sep 2022 06:00:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> Ohm thank you but that method since Qt 6.0. I'm using Qt 5.15.2. :-(</p>
]]></description><link>https://forum.qt.io/post/730289</link><guid isPermaLink="true">https://forum.qt.io/post/730289</guid><dc:creator><![CDATA[Alexey Serebryakov]]></dc:creator><pubDate>Tue, 27 Sep 2022 06:00:00 GMT</pubDate></item><item><title><![CDATA[Reply to Compare two QVariant on Tue, 27 Sep 2022 05:10:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexey-serebryakov">@<bdi>Alexey-Serebryakov</bdi></a> You can use <a href="https://doc.qt.io/qt-6/qvariant.html#compare" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qvariant.html#compare</a></p>
]]></description><link>https://forum.qt.io/post/730282</link><guid isPermaLink="true">https://forum.qt.io/post/730282</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 27 Sep 2022 05:10:52 GMT</pubDate></item></channel></rss>