在.pro里:
build_type = CONFIG(debug, debug|release) { build_type = debug } else { build_type = release } DESTDIR = $$build_type/out OBJECTS_DIR = $$build_type/obj MOC_DIR = $$build_type/moc RCC_DIR = $$build_type/rcc UI_DIR = $$build_type/ui
结果:
参考:http://www.qtbig.com/page/4/
原文:https://www.cnblogs.com/judes/p/13616826.html