Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66187

Whitespace handling in number conversion differently for QByteArray and QString

XMLWordPrintable

    • f98ee77cd3e9964b995d063345a895e537bc1157

      This affects all to(U)Int() and toFloat() functions:

      • QByteArray does not allow leading/trailing whitespaces (converts the string to 0)
      • QString/QLocale does allow leading/trailing whitespaces (converts the string to it's number representation)

      Expected behavior: whitespaces should be ignored in the QByteArray functions also.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            aha_1980 André Hartmann
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes