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. Documentation of Qt Creator variables?
Forum Updated to NodeBB v4.3 + New Features

Documentation of Qt Creator variables?

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 5 Posters 12.7k Views 2 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.
  • T Offline
    T Offline
    toralf
    wrote on 25 Sept 2013, 13:49 last edited by
    #1

    Is the complete set of variables that may be used in Qt Creator configurations documented anywhere? I've seen mention of %{sourceDir} and %{buildDir}, but there appear to be many more variables - like %{CurrentProject:Name}, %{CurrentDocument:FileName} etc.

    1 Reply Last reply
    1
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 26 Sept 2013, 05:21 last edited by
      #2

      Just a few clicks away... "link":http://qt-project.org/doc/qtcreator-2.8/creator-build-settings.html#using-environment-variables.

      (Z(:^

      1 Reply Last reply
      0
      • T Offline
        T Offline
        toralf
        wrote on 26 Sept 2013, 06:51 last edited by
        #3

        ... which is precisely the documentation I talked about, that mentions %{sourceDir} and %{buildDir}, but does not list all the other Qt Creator variables...

        1 Reply Last reply
        1
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 26 Sept 2013, 07:21 last edited by
          #4

          Ask Qt Creator developers, but judging from the source file for Qt Creator responsible for handling paths, there are only those 2 variables available.

          (Z(:^

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on 26 Sept 2013, 07:21 last edited by
            #5

            I guess them not being document means that they are not official, and thus cannot be relied on.

            That happens more often.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              toralf
              wrote on 26 Sept 2013, 12:56 last edited by
              #6

              There are quite definitely more variables that work in build and run configs.
              But yes, I suppose they may be inofficial. They are used in the default setup, though. See for instance Environment->External Tools->Edit with vi and Build & Run->General->Default build directory under Tools->Options (in an installation where you haven't changed those settings.)

              1 Reply Last reply
              0
              • C Offline
                C Offline
                code_fodder
                wrote on 14 Mar 2016, 08:21 last edited by
                #7

                Just in case you are still looking for this... seems no one can find this list / Qt Creator variables button. Anyway, take a look at my answer on stackoverflow here. I am really surprised that this button is not available all over Qt Creator.... a bug that never got fixed?

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MXXIV
                  wrote on 14 Mar 2016, 09:04 last edited by
                  #8

                  In asked same question on stack voerflow in the past: http://stackoverflow.com/q/34271859/607407

                  If an useful answer pops up, let me know.

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    code_fodder
                    wrote on 14 Mar 2016, 09:48 last edited by
                    #9

                    Did you click on the link in my post above? - the answer is in there :)

                    Here is the link in text:
                    http://stackoverflow.com/questions/35970727/use-of-variables-like-builddir-in-qtcreator-kit-settings-in-qt5

                    1 Reply Last reply
                    0

                    • Login

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