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

Q_GADGET is incompatible with QQuickItem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.13.0
    • None
    • Linux i7-2720QM 5.2.5-arch1-1-ARCH #1 SMP PREEMPT Wed Jul 31 08:30:34 UTC 2019 x86_64 GNU/Linux
    • Linux/X11

    Description

      If you instantiate a Q_GADGET instance as a child of a QQuickItem instance, you will receive this message:

      qrc:main.qml:77:5: Cannot assign object to list property "data"

      Example is here:

      https://github.com/user1095108/quickquake/blob/master/gui/glquake.hpp

      Just change Q_OBJECT to Q_GADGET.

      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
              janezzabc Janez Žemva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes