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

QML crashes when declaring a list with primitives

    XMLWordPrintable

Details

    Description

      (tested with gitorious master)

      The following qml snippet crashes:

      import Qt 4.7

      Rectangle {
      id: root
      width: 450; height: 450
      color: "black"

      children: [
      //Rectangle

      {id: childRec1; x: 50; y: 50; height: 50; width: 50; color: "red"}

      ,
      //Rectangle

      {id: childRec2; x: 150; y: 50; height: 50; width: 50; color: "yellow"}

      1, 3
      ]

      }

      Of course, it's invalid, but it should generate an error message printed to the console, not a crash. If needed I could provide a patch (via gitorious merge request).

      Attachments

        Activity

          People

            aakenned Aaron Kennedy
            luping B. Krevert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: