<?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[[Qt IFW] How to read command line parameter]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am using Qt IFW to provide a setup installer to our end users.<br />
I'd like to know if there was a way to read from the controller script a parameter given with the command line.</p>
<p dir="auto">I'd like to override the target directory:</p>
<pre><code>Controller.prototype.TargetDirectoryPageCallback = function()
{
    // Here, specific code to update the target directory, based
    // on a parameter given in the command line of the installer.
    // The installer could be started with such a command line:
    // my_app_setup.exe --target-directory=/path/to/the/install/directory
    gui.clickButton(buttons.NextButton);
}
</code></pre>
<p dir="auto">Thank you in advance for your answers!</p>
]]></description><link>https://forum.qt.io/topic/77154/qt-ifw-how-to-read-command-line-parameter</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 20:59:38 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/77154.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Mar 2017 10:44:13 GMT</pubDate><ttl>60</ttl></channel></rss>