C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 09-20-2005, 11:00 AM   #1
Registered User
 
Join Date: Jul 2003
Posts: 450
QInttValidator may be broken.

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?
curlious is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
broken application bejiz Tech Board 1 08-17-2007 09:12 AM
Broken Necklace sybariticak47 Windows Programming 6 01-22-2006 03:31 PM
undeclared identifier problem jjj93421 C++ Programming 13 04-24-2004 09:22 AM
broken pipe samps005 Linux Programming 1 05-07-2003 09:04 PM
Broken Link JoshG A Brief History of Cprogramming.com 1 05-13-2002 03:43 PM


All times are GMT -6. The time now is 09:36 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22