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

QTextStream

    XMLWordPrintable

Details

    Description

      QTextStream::setIntegerBase() is not working correct for following usage:

      QString input("80");
      QTextStream stream(&input);
      stream.setIntegerBase(16);
      int result = 0;
      stream >> result;

      result is 0, while it is expected to be 128.

      To read hex values from a string I should always put "0x" prefix in front of every value. I need to do this for a very long string and this dramatically decrease performance.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            aykoc Ahmed Yasin Koculu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes