After all this work on my fail safe enter integer widget I find this
Code:
 QValidator* validator = new QIntValidator( INT_MIN, INT_MAX, this );
On my system though the max integer is 2147483647 which is ten digits, while the above validator will limit the entry to nine digits.

My question is for this generic integer input program should I allow ten digits and give a warning if it overflows or should I just use this QIntValidator.

The reason why I am doing this is to seperate the GUI from future implementations which may need the full integer range.

I have a member function getInteger() as the interface to the rest of the program.
The failsafes are implemented by input routine.

What would you do?