qt计算器简单代码 void Calculator::on_btn1_clicked() { if (flag == 0) { op0 = op0 * 10 + 1; if (finished == 0) s += "1"; else { s = "1"; finished = 0; } } else { op1 = op1 * 10 + 1; s += "1";