Nominate our 2022 Qt Champions!

Issues using QtCreator 3.3.0 + QBS (Qt Build System)

  • I was trying out QBS support in QtCreator 3.3 (Windows 8.1) and ran into some issues. Has anybody succeeded in using QBS with QtCreator?
    QBS project file is as simple as:

    import qbs 1.0

    CppApplication {
    Depends { name: "Qt"; submodules: ["core"] }

    type: "application" // To suppress bundle generation on Mac
    consoleApplication: true
    Group {
        name: "MyFiles"
        files: [


    My issue is that I get an error message when I try to switch to DEBUG build mode. Error occurs when parsing QBS files. Text is the following:

    C:\Users\Algirdas\AppData\Roaming\QtProject\qtcreator\qbs\profiles\qtc_Desktop_Qt_5_4_0_MSVC2013_64bit\modules\Qt\core\core.qbs:275: error: The following properties have invalid values: Qt.core.qtBuildVariant: is 'release', but qbs.buildVariant is 'debug', which is not allowed when using MSVC

    So the message tries to tell me that I can't build in debug. I tried to build project in release mode and it actually builds and runs, so issue is connected to debug mode. I was digging a bit deeper and came to qbs configuration files that QtCreator makes when configuring KITS. File is "C:\Users%USERNAME%\AppData\Roaming\QtProject\qtcreator\qbs.conf". I looked into it and it seems that my both kits (Qt 5.3 and Qt 5.4) are configured only for release build mode.


    Does anybody know why it is like this. For me it seems like a bug, but maybe I am wrong. I tried to add debug mode to the parameter "availableBuildVariants" manually, but then project fails to compile with other weird errors.


  • Looks like it's fixed on Qt Creator 3.4.0 RC (Bug: QBS-757, Fix: Fix detection of debug/release Qt)

    It's a shame that QBS projects still doesn't treated as a first class citizen...

Log in to reply