Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDoubleValidator & lineEdit->toDouble(). Qt 5.3
QtWS25 Last Chance

QDoubleValidator & lineEdit->toDouble(). Qt 5.3

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 710 Views
  • 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 Offline
    L Offline
    loggonlink
    wrote on last edited by
    #1

    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
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved