我正在尝试测试QQmlPropertyMap类。如果我可以将它子类化,它似乎可以很好地满足我的需求。文档here甚至给出了一些关于如何对其进行子类化的基本说明。所述文档还指出此类派生自QObject。为了它的值(value),我在带有QtQuick2.0的Qt5.0.0上使用QtCreator2.6.1。我的main.qml:importQtQuick2.0Rectangle{width:360height:360Text{text:owner.fieldanchors.centerIn:parent}MouseArea{anchors.fill:parentonClicked:{ow