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

JSON.stringify does not handle Qt.point correctly

XMLWordPrintable

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes