Qt – How to change build output folder in project

this is a way to change Qt output folder in .pro file.

1
2
3
4
5
CONFIG(debug, debug|release) {
    DESTDIR = ../debug
} else {
    DESTDIR = ../release
}

it will output folder into parent folder of the project

Qt-Config