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

QML syntax/semantic oddity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.5, 5.13.1, 5.14.0 Beta3, 5.15
    • None

    Description

      The following  code creates  a warning about "file:///tmp/test.qml:4:2: Unable to assign QQuickItem_QML_0 to QQuickRectangle", however the line with Item does not.

       

      import QtQuick 2.14
      Item {
      	property Rectangle r: Rectangle
      	property Item i: Item
      }
      
      

      It is unclear to me what exactly happens here, but we most likely want to reject such a program.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes