<?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[Couple of queries re QtScript]]></title><description><![CDATA[<p dir="auto">I'm using QtScript to provide a scripting framework for a commercial app.<br />
It's bewildering stuff, perhaps another reason why it looks like there are big changes in Qt 5.0</p>
<p dir="auto">Firstly, whats the recommended way of exposing enums? :) (this seems to be a common query with no published solutions - anywhere)<br />
I have a class functions that return a global defined enum, and I have corresponding Q_ENUMS, Q_DECLARE_METATYPE etc, and trying to figure out what's next without implementing an uncessarily complicated solution.</p>
<p dir="auto">I've googled all combinations of phrases and founding nothing.<br />
Is it possible to programmatically create the equiv of JS 'enum xxx { y,z }' ?</p>
<p dir="auto">UPDATE: Wow, I'm a massive muppet - there is no enum in Javascript yet, holy smoke how did I not know that!</p>
<p dir="auto">Secondly, So what is going to break in 5.0 from a 4.8.2 if I'm using a broad swath of QtScript functionality?<br />
Am I starting to use a framework that is already going to be phased out?</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.qt.io/topic/17842/couple-of-queries-re-qtscript</link><generator>RSS for Node</generator><lastBuildDate>Wed, 05 Aug 2026 15:37:43 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/17842.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Jun 2012 05:22:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Couple of queries re QtScript on Tue, 26 Jun 2012 06:39:12 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="TimS" date="1340692510"]Well I'm an idiot anyway because I just figured out javascript doesn't support native enum yet.  Boy that is embarrassing.</p>
<p dir="auto">QtScript is great, just a steep learning curve as I'm looking to do complex stuff for my first project.<br />
Doesn't matter to me if it is just in maintenance mode.<br />
[/quote]</p>
<p dir="auto">There are no enums in js, because we don't need it there).</p>
]]></description><link>https://forum.qt.io/post/142678</link><guid isPermaLink="true">https://forum.qt.io/post/142678</guid><dc:creator><![CDATA[tucnak]]></dc:creator><pubDate>Tue, 26 Jun 2012 06:39:12 GMT</pubDate></item><item><title><![CDATA[Reply to Couple of queries re QtScript on Tue, 26 Jun 2012 06:35:10 GMT]]></title><description><![CDATA[<p dir="auto">Well I'm an idiot anyway because I just figured out javascript doesn't support native enum yet.  Boy that is embarrassing.</p>
<p dir="auto">QtScript is great, just a steep learning curve as I'm looking to do complex stuff for my first project.<br />
Doesn't matter to me if it is just in maintenance mode.</p>
]]></description><link>https://forum.qt.io/post/142677</link><guid isPermaLink="true">https://forum.qt.io/post/142677</guid><dc:creator><![CDATA[TimS]]></dc:creator><pubDate>Tue, 26 Jun 2012 06:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to Couple of queries re QtScript on Tue, 26 Jun 2012 05:35:46 GMT]]></title><description><![CDATA[<p dir="auto">Why do you don't like Qt Script's current state? I know, it could be better.</p>
<p dir="auto">Yep. In Qt 5 QtScript has massive changes in core and it will have external functionality.</p>
<p dir="auto"><em>P.S.</em> It should be moved to The Lounge forum. It does not have correct question or something nearly connected with code or General &amp; Desktop</p>
]]></description><link>https://forum.qt.io/post/142675</link><guid isPermaLink="true">https://forum.qt.io/post/142675</guid><dc:creator><![CDATA[tucnak]]></dc:creator><pubDate>Tue, 26 Jun 2012 05:35:46 GMT</pubDate></item></channel></rss>