Important: Please read the Qt Code of Conduct -

How to get Qbs Qt variables

  • 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.

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

Log in to reply