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

"Cannot assign object to list property "data"" when declaring QML instance of C++ item declared in lib

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.12
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 18.04

      Description

      I get the following error when running the attached application:

      qrc:/qml/main.qml:14 Cannot assign object to list property "data"
      

      So far, I've only seen the error with a static build (reproduced with separate debug and release builds) of Qt 5.12. I tested with a dynamic debug build of Qt 5.12 and it runs fine.

      I would attach a qmake version of the project, but I don't know how to replicate it easily.

        Attachments

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

          Activity

            People

            Assignee:
            shausman Simon Hausmann
            Reporter:
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes