QString str="R2D2"; · bool ok; · float d=str.toFloat(&ok); //Return 0.0 when conversion is done, ok=false;.
確定! 回上一頁