JeanC
7th June 2008, 14:23
qt 4.3.4 on linux
When I try to use isDigit() I get error ‘isDigit’ was not declared in this scope. Same goes for other functions from QChar like isNumber() (I did not test them all).
When i try isdigit() I get error: cannot convert ‘QCharRef’ to ‘int’ for argument ‘1’ to ‘int isdigit(int)’
But there is no entry in qassistent for isdigit().
I now use:
#define isDigit(c) ((c) >= '0' && (c) <= '9')
but I'm curious as to what others say.
When I try to use isDigit() I get error ‘isDigit’ was not declared in this scope. Same goes for other functions from QChar like isNumber() (I did not test them all).
When i try isdigit() I get error: cannot convert ‘QCharRef’ to ‘int’ for argument ‘1’ to ‘int isdigit(int)’
But there is no entry in qassistent for isdigit().
I now use:
#define isDigit(c) ((c) >= '0' && (c) <= '9')
but I'm curious as to what others say.