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

qmlsc pastes whole file to stderr

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.4, 6.5.0
    • 6.4.1
    • QML: Compiler
    • None
    • c7c4ac6e3 (dev)

    Description

      The following snippet (or the one from the documentation)

      import QtQuick
      
      Window {
          id: root
          width: 640
          height: 480
          visible: true
          title: "Foo"
      
          Text {
              id: label
      
              states: [
                  State {
                      when: true
                      AnchorChanges {
                         target: item
                         anchors.top: label.bottom
                      }
                  }
              ]
      
              anchors.top: parent.top
          }
      
          Item {
              id: item
          }
      }
      

      compiles to

      Warning: main.qml:18:33: Cannot assign binding of type QQuickAnchorLine to QQmlScriptString
                         anchors.top: label.bottom
                                      ^^^^^^^^^^^^
      Error: main.qml:18:45: Could not compile binding for top: cannot convert from QQuickAnchorLine of QQuickItem::bottom with type QQuickAnchorLine to QQmlScriptString of QQmlScriptString
                      }
                  }
              ]        anchors.top: parent.top
          }    Item {
              id: item
          }
      }
                                                                                                                             ^
      

      . Additionally the remaining parts of the file is pasted to the console.

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              cajus Cajus Pollmeier
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes