Arm QQmlPropertyCache:QQuickItem具有FastProperty类信息,但未安装属性访问器

Arm QQmlPropertyCache:QQuickItem具有FastProperty类信息,但未安装属性访问器,arm,qml,qtwebkit,yocto,qt5.4,Arm,Qml,Qtwebkit,Yocto,Qt5.4,在fido分支上使用Yocto构建了raspberrypi2linux发行版,包括Qt5.4+QtWebKit+QML插件 使用以下QML脚本进行测试 运行此脚本时,我遇到以下错误: root@raspberrypi2:~# /usr/bin/qt5/qmlscene --platform eglfs webkit.qml Unable to query physical screen size, defaulting to 100 dpi. To override, set QT_QPA_E

fido
分支上使用Yocto构建了raspberrypi2linux发行版,包括Qt5.4+QtWebKit+QML插件

使用以下QML脚本进行测试 运行此脚本时,我遇到以下错误:

root@raspberrypi2:~# /usr/bin/qt5/qmlscene --platform eglfs webkit.qml 
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
QQmlPropertyCache: QQuickItem has FastProperty class info, but has not installed property accessors
Aborted

有什么建议吗

我也有同样的问题。解决办法是增加这一行

import QtQuick 2.0
到QML文件

import QtQuick 2.0