<?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[[bug] qmllint doesn&#x27;t recognize ValueTypeBehavior pragma is Assertable, introduced in Qt 6.8 (Qt Version 6.10.2)]]></title><description><![CDATA[<p dir="auto">qmllint from Qt Version 6.10.2 doesn't recognize the pragma introduced in 6.8 as of the official docs shown below.</p>
<pre><code>❯ where.exe qmllint
C:\Qt\6.10.2\msvc2022_64\bin\qmllint.exe
</code></pre>
<pre><code>Unknown argument "Assertable" to pragma ValueTypeBehavior [syntax]
pragma ValueTypeBehavior: Addressable, Assertable
^^^^^^
</code></pre>
<p dir="auto"><em>Another attribute to the ValueTypeBehavior pragma is Assertable, introduced in Qt 6.8. Due to a mistake in Qt 6.6 and 6.7 the a as rect above not only checks whether a is a rect but also constructs a rect if a is of a compatible type. This is obviously not what a type assertion should do. Specifying Assertable prevents this behavior and restricts type assertions for value types to only check for the type. You should always specify it if you are going to use value types with as. In any case, if the type assertion for a value type fails, the result is undefined.</em><br />
<a href="https://doc.qt.io/qt-6/qtqml-documents-structure.html#valuetypebehavior" target="_blank" rel="noopener noreferrer nofollow ugc">valuetypebehavior docs</a></p>
]]></description><link>https://forum.qt.io/topic/164348/bug-qmllint-doesn-t-recognize-valuetypebehavior-pragma-is-assertable-introduced-in-qt-6.8-qt-version-6.10.2</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 03:34:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164348.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Mar 2026 15:07:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [bug] qmllint doesn&#x27;t recognize ValueTypeBehavior pragma is Assertable, introduced in Qt 6.8 (Qt Version 6.10.2) on Mon, 02 Mar 2026 08:01:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shyney7">@<bdi>shyney7</bdi></a> Thank you for highlighting this issue. I have created a bug report on your behalf: <a href="https://qt-project.atlassian.net/browse/QTBUG-144585" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.atlassian.net/browse/QTBUG-144585</a></p>
<p dir="auto">If you find any other issues, please report it directly to our bug tracker like the link above. You can log in using the same Qt Account that you use to log into this forum.</p>
]]></description><link>https://forum.qt.io/post/836700</link><guid isPermaLink="true">https://forum.qt.io/post/836700</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Mon, 02 Mar 2026 08:01:34 GMT</pubDate></item></channel></rss>