Thank you very much for helping me.
This is the result:
qleobject->setText("0");
qleobject->setAlignment(Qt::AlignRight);
qleobject->setValidator(val);
qApp->connect(//more code...
QLineEdit *qleobject = new QLineEdit(this);
qleobject->setText("0");
qleobject->setAlignment(Qt::AlignRight);
QIntValidator *val = new QIntValidator(0,2147483647,this);
qleobject->setValidator(val);
qApp->connect(//more code...
To copy to clipboard, switch view to plain text mode
Edit: Where do I mark the thread as solved, I can't seem to find it? (I'm sorry for the trouble)
Bookmarks