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

JSON.stringify does not handle Qt.point correctly

    XMLWordPrintable

Details

    Description

      import QtQuick 2.3
      
      Item {
      	Component.onCompleted: {
      		var pt = Qt.point(1, 0)
      		console.log(pt, JSON.stringify(pt))
      	}
      }
      

      The printed output is

         QPointF(1, 0) {}
      

      The point has been stringified as an empty object.

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              ske Steve
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes