1

It's possible to set a fix string at first of QLineEdit? something like this: enter image description here

Which in here $ is constant and user could not remove or edit it.

ΦXocę 웃 Пepeúpa ツ
  • 47,427
  • 17
  • 69
  • 97
Anthony
  • 98
  • 7

1 Answers1

3

use the input mask in the object: e.g.

ui->lineEdit->setInputMask("$ 000.000.000.000 ");

will look like

enter image description here

ΦXocę 웃 Пepeúpa ツ
  • 47,427
  • 17
  • 69
  • 97