QDoubleValidator & lineEdit->toDouble(). Qt 5.3



  • Migrate code from Qt 4.8 to Qt 5.3.
    QDoubleValidator allow only values format XXX,XXX ;
    lineEdit->toDouble() correctly conver only if text have format XXX.XXX, in case when text have format XXX,XXX it return 0.
    The problem only in Qt 5.3.

    I have planty QLineEdits with QDoubleValidators, who can give me advice how to change my code.
    If i set German local then it allow XXX,XXX and XXX.XXX formats, but toDouble yet can't convert XXX,XXX. Can some one tell which local allow only XXX.XXX format.
    P.S. Sorry for my language errors, my english not very well.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.