Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to use environmental variables in Qt Creator Project Mode Run Settings
Qt 6.11 is out! See what's new in the release blog

How to use environmental variables in Qt Creator Project Mode Run Settings

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 401 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rory_1
    wrote on last edited by
    #1

    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.

    BTW, I am currently using batch commands to run macdeployqt.

    Here is what I have tried:
    3a596ac8-b3af-4363-b695-ef58c5006560-image.png

    What is the correct syntax for "%{ActiveProject:QT_INSTALL_BINS}"?

    Here is what I have researched so far:
    https://doc.qt.io/qtcreator/creator-how-to-use-qtc-variables.html
    https://stackoverflow.com/questions/35970727/use-of-variables-like-builddir-in-qtcreator-kit-settings-in-qt5

    A second question: once I have this working, how do I copy the deployment steps to the run settings of another build version?

    Any guidance would be most appreciated.

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved