<?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 replace QScript in QT6]]></title><description><![CDATA[<p dir="auto">I am trying to build our app using Qt6 on MacOS 13.5.1</p>
<p dir="auto">The app was written in Qt5, but on the MacBook I only have macosx11.3 SDK, so had to try buidling using Qt 6.4.2.</p>
<p dir="auto">The issue I am having is the error</p>
<p dir="auto">Unknown module(s) in QT: script</p>
<p dir="auto">I note that QScript is removed from Qt6.</p>
<p dir="auto">QScript is used in only a few places in the code. I was wondering how the following would be replaced (not full code, but hope someone can give me pointers here).</p>
<pre><code>FunctionPlotGraphicsView *view;
FunctionPlotData plot;
QScriptValue func;
QScriptEngine engine;
QScriptValueList args;
.
.

args &lt;&lt; qreal_value;
qreal y = plot-&gt;func.call(QscritValue(), args).toNumber();

QScriptValue global = _view-&gt;engine.globalObject();
</code></pre>
]]></description><link>https://forum.qt.io/topic/149084/how-to-replace-qscript-in-qt6</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 00:45:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/149084.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Sep 2023 23:25:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to replace QScript in QT6 on Thu, 07 Sep 2023 00:34:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tgrsm">@<bdi>TGRSM</bdi></a><br />
Qt6 has QJSEngine instead<br />
<a href="https://doc.qt.io/qt-6/topics-scripting.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/topics-scripting.html</a></p>
]]></description><link>https://forum.qt.io/post/771767</link><guid isPermaLink="true">https://forum.qt.io/post/771767</guid><dc:creator><![CDATA[mpergand]]></dc:creator><pubDate>Thu, 07 Sep 2023 00:34:19 GMT</pubDate></item></channel></rss>