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

Can only assign to a property of an interface type inline

    XMLWordPrintable

Details

    • 1eed1b860534f481b89b411fc7e21a7daa22d5ee (qt/qtdeclarative/5.15)

    Description

      With a Q_PROPERTY with an interface type (Q_DECLARE_INTERFACE + qmlRegisterInterface) we can only assign to it by creating an object inline.

      interfaceProperty: TypeImplementingTheInterface {} works
      interfaceProperty: idOfObjectImplementingTheInterface doesn't work

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            grecko Pierre-Yves Siret
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes