<?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[Importing QtQuick and QtQuick.Controls gives &#x27;Invalid propery name in TableView&#x27;]]></title><description><![CDATA[<p dir="auto">I've just notice a strange thing: if I import both QtQuick 5.12 and QtQuick.Controls 2.12, the QML syntax check gives some 'Invalid propery name' errors for some properies in TableView.<br />
You can easily verify this, opening the "pixelator" example and adding</p>
<pre><code>import QtQuick.Controls 2.12
</code></pre>
<p dir="auto">at line 52.<br />
If you run QML/JS Checks (CTRL+SHIFT+C) you can see the error for propery delegate of the TableView (line 114).<br />
If you don't import QtQuick.Controls, the error is not shown.</p>
<p dir="auto">Is there something wrong from my side?</p>
]]></description><link>https://forum.qt.io/topic/109702/importing-qtquick-and-qtquick-controls-gives-invalid-propery-name-in-tableview</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 11:10:41 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/109702.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Dec 2019 11:31:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Importing QtQuick and QtQuick.Controls gives &#x27;Invalid propery name in TableView&#x27; on Mon, 16 Dec 2019 15:14:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/markkyboy">@<bdi>Markkyboy</bdi></a> I confirm that I see the bug both with QtCreator 4.10.2 and 4.11, with Qt 5.12.6, 5.13.2 and 5.14 (all of them with MigGW compiler 32 and 64 bit on Windows).<br />
As I wrote above, the order of import statements matters.<br />
You have to run the syntax check (CTRL+SHIFT+C) after you add the import.</p>
]]></description><link>https://forum.qt.io/post/567587</link><guid isPermaLink="true">https://forum.qt.io/post/567587</guid><dc:creator><![CDATA[-vix-]]></dc:creator><pubDate>Mon, 16 Dec 2019 15:14:13 GMT</pubDate></item><item><title><![CDATA[Reply to Importing QtQuick and QtQuick.Controls gives &#x27;Invalid propery name in TableView&#x27; on Mon, 16 Dec 2019 15:03:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bob64">@<bdi>Bob64</bdi></a> I confirm that importing QtQuick.Controls 2.12 <strong>before</strong> QtQuick 2.12 doesn't show the issue.<br />
It seems that the order matters.<br />
TableView is implemented in <a href="https://doc.qt.io/qt-5/qml-qtquick-tableview.html" target="_blank" rel="noopener noreferrer nofollow ugc">QtQuick module</a>, and an old "QtQuick Controls 1" TableView is implemented in <a href="https://doc.qt.io/qt-5/qml-qtquick-controls-tableview.html" target="_blank" rel="noopener noreferrer nofollow ugc">QtQuick.Controls</a> module.<br />
If importing QtQuick.Control 2.12 includes somehow QtQuick.Control 1, it can be that it overwrites the TableView imported from QtQuick.<br />
But I don't know if QtQuick.Control 2.12 includes QtQuick.Control 1</p>
]]></description><link>https://forum.qt.io/post/567583</link><guid isPermaLink="true">https://forum.qt.io/post/567583</guid><dc:creator><![CDATA[-vix-]]></dc:creator><pubDate>Mon, 16 Dec 2019 15:03:57 GMT</pubDate></item><item><title><![CDATA[Reply to Importing QtQuick and QtQuick.Controls gives &#x27;Invalid propery name in TableView&#x27; on Mon, 16 Dec 2019 14:00:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vix">@<bdi>vix</bdi></a> Sorry, ignore my previous reply. Now that I have been able to remind myself, the issue was that I needed to import <code>QtQml.Models</code> before <code>QtQuick</code>. (However, it was indeed an "Invalid property name" error that I otherwise saw, in the properties of <code>ListElement</code>s in a <code>ListModel</code>).</p>
]]></description><link>https://forum.qt.io/post/567576</link><guid isPermaLink="true">https://forum.qt.io/post/567576</guid><dc:creator><![CDATA[Bob64]]></dc:creator><pubDate>Mon, 16 Dec 2019 14:00:07 GMT</pubDate></item><item><title><![CDATA[Reply to Importing QtQuick and QtQuick.Controls gives &#x27;Invalid propery name in TableView&#x27; on Sat, 14 Dec 2019 12:29:14 GMT]]></title><description><![CDATA[<p dir="auto">No errors given here when adding the import statement, the example runs as expected.</p>
<p dir="auto">I'm using QtCreator 4.10.2 (based on Qt 5.13.2(MSVC 2017, 32bit)</p>
<p dir="auto">Quote<br />
"I've just notice a strange thing: if I import both QtQuick 5.12 and QtQuick.Controls 2.12," . . . . hold on, QtQuick 5.12 not 2.12 ?</p>
]]></description><link>https://forum.qt.io/post/567310</link><guid isPermaLink="true">https://forum.qt.io/post/567310</guid><dc:creator><![CDATA[Markkyboy]]></dc:creator><pubDate>Sat, 14 Dec 2019 12:29:14 GMT</pubDate></item><item><title><![CDATA[Reply to Importing QtQuick and QtQuick.Controls gives &#x27;Invalid propery name in TableView&#x27; on Sat, 14 Dec 2019 11:49:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vix">@<bdi>vix</bdi></a> This rings a bell, but I am not able to access my code at the moment to check the details. I am sure I have seen something like this which was resolved by reordering the imports. It was a bug in Qt  from what I remember.</p>
]]></description><link>https://forum.qt.io/post/567304</link><guid isPermaLink="true">https://forum.qt.io/post/567304</guid><dc:creator><![CDATA[Bob64]]></dc:creator><pubDate>Sat, 14 Dec 2019 11:49:00 GMT</pubDate></item></channel></rss>