<?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 environmental variables in Qt Creator Project Mode Run Settings]]></title><description><![CDATA[<p dir="auto">I'm trying to automate my deployment using the "Add deploy step" in run settings in the Project Mode in Qt Creator.  I want to use macdeployqt for the relevant version of Qt so it copies the correct frameworks to my application package.  I am having problems inserting an environmental variable into the command line.</p>
<p dir="auto">BTW, I am currently using batch commands to run macdeployqt.</p>
<p dir="auto">Here is what I have tried:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/2e805425-bab7-4570-bd8a-8c501269e622.png" alt="3a596ac8-b3af-4363-b695-ef58c5006560-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What is the correct syntax for "%{ActiveProject:QT_INSTALL_BINS}"?</p>
<p dir="auto">Here is what I have researched so far:<br />
<a href="https://doc.qt.io/qtcreator/creator-how-to-use-qtc-variables.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qtcreator/creator-how-to-use-qtc-variables.html</a><br />
<a href="https://stackoverflow.com/questions/35970727/use-of-variables-like-builddir-in-qtcreator-kit-settings-in-qt5" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/35970727/use-of-variables-like-builddir-in-qtcreator-kit-settings-in-qt5</a></p>
<p dir="auto">A second question: once I have this working, how do I copy the deployment steps to the run settings of another build version?</p>
<p dir="auto">Any guidance would be most appreciated.</p>
]]></description><link>https://forum.qt.io/topic/158183/how-to-use-environmental-variables-in-qt-creator-project-mode-run-settings</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 12:26:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/158183.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Aug 2024 18:50:12 GMT</pubDate><ttl>60</ttl></channel></rss>