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

Whitespace handling in number conversion differently for QByteArray and QString

    XMLWordPrintable

Details

    • f98ee77cd3e9964b995d063345a895e537bc1157

    Description

      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.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-66187
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes