QRegExp rx = QRegExp("[\40]*");

QRegExpValidator* validator = new QRegExpValidator(rx);

QLineEdit* lineEdit = new QLineEdit();

lineEdit->setValidator(validator);

相关文章:

  • 2021-11-28
  • 2021-12-01
  • 2021-12-19
  • 2021-04-23
  • 2021-07-25
  • 2021-10-31
  • 2021-11-12
  • 2021-11-18
猜你喜欢
  • 2021-07-01
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案