是否可以在QLineEdit的开头设置修复字符串?像这样的东西:
QLineEdit
此处$中的常量是常量,用户无法删除或编辑它。
$
在对象中使用输入掩码:例如
ui->lineEdit->setInputMask("$ 000.000.000.000 ");
看起来像