直接上代码 int SettingMode::binToDec(QString strBin) { int j = 1, value = 0; for(int i = 0 ; i<strBin.length