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

QGeoCoordinate QDebug stream operator precision insufficient

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.0 Beta 1
    • 5.8.0, 5.9.0 Alpha
    • Positioning
    • None

    Description

      The QDebug stream operator for QGeoCoordinate does not specify a floating point precision for the text stream. As a result coordinates are defaulted to printing 6 digits which often truncates them before useful coordinates are expressed.

      Additionally some users may not care, but for others the inadvertent logging of coordinates could be considered a security risk. I'd like to propose adding a pair of static methods to QGeoCoordinate that allow getting/setting the default QDebug stream operator real number precision. This will allow flexibility to deal with both cases.

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            nweibley Nate Weibley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes