Hi there
I'm not sure if it's something's wrong with QIntValidator class, or with my code. I use this class as below:
Qt Code:
  1. QIntValidator *gV = new QIntValidator(0, 500, this);
  2. gravityEdit = new QLineEdit(QString("%1").arg(parentWindow->scene->gravityForce.g), this);
  3. gravityEdit->setValidator(gV);
To copy to clipboard, switch view to plain text mode 

Now when I launch the application and edit 'gravityEdit', validator works, but it accepts input from 0 to 999. Any ideas when did I go wrong? It looks like it sets input range maximum to powers of 10 only, but i want it to be 0 - 500, is it possible?