<?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[How to use enum in QML?]]></title><description><![CDATA[<p dir="auto">I can declare this in QML:</p>
<pre><code>    enum ObjectTypes {
        OT_Object1 = 100,
        OT_Object2 = 200
    }
</code></pre>
<p dir="auto">But I cannot seem to use the values in any way.  I tried using console.log of the enum values, but it says they don't exist.  I get no errors when declaring the enum either.  Is this fully implemented?</p>
]]></description><link>https://forum.qt.io/topic/118660/how-to-use-enum-in-qml</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 08:09:26 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/118660.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Sep 2020 16:26:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to use enum in QML? on Wed, 02 Sep 2020 16:36:02 GMT]]></title><description><![CDATA[<p dir="auto">Why do I look and look and don't find, then find after I post?<br />
<a href="https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#enumeration-attributes" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#enumeration-attributes</a></p>
]]></description><link>https://forum.qt.io/post/615495</link><guid isPermaLink="true">https://forum.qt.io/post/615495</guid><dc:creator><![CDATA[fcarney]]></dc:creator><pubDate>Wed, 02 Sep 2020 16:36:02 GMT</pubDate></item></channel></rss>