Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] QMake variable manipulation

[Solved] QMake variable manipulation

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.7k 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.
  • D Offline
    D Offline
    Davita
    wrote on last edited by
    #1

    Hi guys.

    I want to declare a variable and add it in INCLUDEPATH. Everything works, but now I want to include a subfolder (of this variable) in include path. For that however, I would prefer to avoid another variable declaration. So is there any way to append the subfolder to the variable pointing to the path?

    MYVAR_PATH = $$quote(C:/somefolder/Qt/Includes)
    INCLUDEPATH += $${MYVAR_PATH}

    #here I want to append "Filters" folder to INCLUDEPATH
    INCLUDEPATH += $${MYVAR_PATH} + "/Filters" #does not work.

    I think there should be a solution to my problem, just don't know where to look :)
    Your help is much appreciated, thanks.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Try this:
      @
      INCLUDEPATH += $${MYVAR_PATH}/Filters
      @

      Works fine for me.

      (Z(:^

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Davita
        wrote on last edited by
        #3

        @sierdzio thanks, it worked :)

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          You're welcome, I'm glad to have helped.

          (Z(:^

          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