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 get Qbs Qt variables
QtWS25 Last Chance

How to get Qbs Qt variables

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 1 Posters 700 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.
  • A Offline
    A Offline
    Approximator
    wrote on last edited by
    #1

    Hi,

    In qmake I was using QT_INSTALL_HEADERS variable: $[QT_INSTALL_HEADERS]
    Is there way to get qt headers path in qbs file?

    I tried something like this: FileInfo.joinPaths(qbs.getEnv('QTDIR'), 'include') but it doesn't work reliably because QTDIR not always set in the environment.

    Thank you in advance.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Approximator
      wrote on last edited by
      #2

      Ok, here is the answer: Qt.core.incPath

      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