在CppApplication里添加配置
cpp.cxxLanguageVersion: "c++17"
c++其他版本同理
import qbs
CppApplication {
consoleApplication: true
files: "main.cpp"
Group { // Properties for the produced executable
fileTagsFilter: product.type
qbs.install: true
}
cpp.cxxLanguageVersion: "c++17"
}