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

Required properties cannot use list<type>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: QML: Compiler
    • Labels:
      None
    • Commits:
      9ab1a6759018b78b0f160c5286f8b0235a34ec50 (qt/qtdeclarative/dev) 2ad89747c4ba6a46deccb27461e80dd3fbcfb39e (qt-creator/qt-creator/4.13)

      Description

      Required properties should allow list<type> syntax for passing objects containing QQmlListProperty<type>.

      Current Behavior:

      required property list<MyClass> someClass
      

      Produces this error "Unexpected token `<'" at runtime and in QtCreator.

      Workaround:
      Don't make it required.

      property list<MyClass> someClass
      

        Attachments

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

          Activity

            People

            Assignee:
            fabiankosmale Fabian Kosmale
            Reporter:
            jhuels Joshua Huels
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes