Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    QDoubleValidator & lineEdit->toDouble(). Qt 5.3

    General and Desktop
    1
    1
    630
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      loggonlink last edited by

      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.

      1 Reply Last reply Reply Quote 1
      • First post
        Last post