Qt提供了QIntValidator和QDoubleValidator可以限定数值输入范围,如使用QIntValidator限制整数的数值范围:. 例1:. lineEdit->setValidator(new ...
確定! 回上一頁