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

"Unable to assign QSize to QSizeF" - should be converted automatically

    XMLWordPrintable

Details

    Description

      Running:

      import QtQuick 2.0
      
      Image {
          property size foo: sourceSize
      }
      

      Results in the following output:

      ...test.qml:4: Unable to assign QSize to QSizeF
      

      Using Qt.size() to explicitly convert it into QSizeF helps, but this should probably happen automatically.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            saviq MichaƂ Sawicz
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes