Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Cannot assign object to list

$
0
0
I’ve steadily been updating our projects to use QtQuick 2.0. I’m getting a really strange error at runtime and I haven’t been able to pinpoint its cause. Google has also been of no help; the forums are my second to last hope other than banging my head against the wall. My QML code is nothing special: import QtQuick 2.0 Item { Connections { target: types //< Irrelevant as to what this is, it’s an exposed QObject. onStart: { } } } The QML Engine when running points at the “Connections” line reporting that “Cannot assign object to list”. The strange thing about this error is that it isn’t consistent. I do consistently see these errors but they complain about random QML Elements. I’ve seen it report the same error for Connections, Item, Rectangle, and QtObject. Each time I run, I get a different set of runtime errors. My theory on this is that the QML Engine is just processing different QML Files each time- but I can’t be sure. Has anyone experienced this before? I get the feeling that somewhere in my code it may be trying to import QtQuick 1.1- but this is just a theory as I’ve yet to find it. Thanks in advance!

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images