Qt 中的switch...case结构中不能直接定义变量,否则会报语法错误错误示例:switch(value){case text1:.......;break;case text2:QString class1 = ....;//不可以在 ...
確定! 回上一頁