<?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[Passing parameters to an external Qt Script]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm new to using QtScript. I've read the "script docs":<a href="http://doc.qt.io/qt-5/qtscript-index.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qtscript-index.html</a> and managed to get a simple external "placeholder" script working. But what I really need to do with this script is to pass in a QBitArray and two integers. Despite reading the docs, I am lost on how to do this.</p>
<p dir="auto">My current script that takes no arguments is read using a QFile and QTextStream and placed into a QString, which is then used to construct a QScriptProgram. I call QScriptEngine::evaluate() on this QScriptProgram. But what do I do when I need to pass parameters to my script?</p>
]]></description><link>https://forum.qt.io/topic/51376/passing-parameters-to-an-external-qt-script</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 20:16:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/51376.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Feb 2015 04:32:38 GMT</pubDate><ttl>60</ttl></channel></rss>