Can't call slot or Q_INVOKABLE from QML in subclass of QQmlPropertyMap
问题 I'm trying to test drive the QQmlPropertyMap class. It seems like it might work well for what I want, if I can subclass it. The documentation here even gives some rudimentary instructions on what to do for subclassing it. Said documentation also indicates that this class derives from QObject . For what it's worth, I'm using QtCreator 2.6.1 on Qt 5.0.0 with QtQuick 2.0. My main.qml: import QtQuick 2.0 Rectangle { width: 360 height: 360 Text { text: owner.field anchors.centerIn: parent }