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. Use QMAKE variables in QtCreator (as a QtCreator: variable)

Use QMAKE variables in QtCreator (as a QtCreator: variable)

Scheduled Pinned Locked Moved Qt Creator and other tools
qtcreator 3.5.0qmake variablestranslate varia
1 Posts 1 Posters 744 Views
  • 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.
  • P Offline
    P Offline
    peter999
    wrote on 30 Sept 2015, 12:51 last edited by peter999 10 Jun 2015, 07:04
    #1

    Hello,

    I have projects with different Versions. So I have a config.pri in each version with the following:

    PROGRAM_VERSION = V_4_5_7 or V_4_5_3 or whatever Version...

    In QMake, I can get this with "$$PROGRAM_VERSION"

    Now I would like to have this Variable in Qt Creator as a part of the build path. (Tools->Options->Build & Run -> Default build directory)

    Is there a way to get this ? In QtCreator, the variables have this syntax "%{variable} ". Is QtCreater able to read from the PRO-Files ? Or from the memory list ?

    In QTCreator, I want to use this as a part of the Buildpath. i.E e:/builds/myapplication/%{PROGRAM_VERSION}/whatever.

    If it works, what is the translation ?

    English is not my native language, I hope you understand what I need...

    Regards,
    Peter

    P.S: If QtCreator has no connection to the Variables of QMake, is QMake able to set an environment variable ?

    1 Reply Last reply
    0

    1/1

    30 Sept 2015, 12:51

    • Login

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