
如何遍历QML Item下的所有的children并显示它们的属性
1个回答
展开全部
import QtQuick 2.0
import Ubuntu.Components 1.1
/*!
\brief MainView with a Label and Button elements.
*/
MainView {
id: root
// objectName for functional testing purposes (autopilot-qt5)
objectName: "mainView"
// Note! applicationName needs to match the "name" field of the click manifest
applicationName: "qmlobjects.liu-xiao-guo"
/*
This property enables the application to change orientation
when the device is rotated. The default is
import Ubuntu.Components 1.1
/*!
\brief MainView with a Label and Button elements.
*/
MainView {
id: root
// objectName for functional testing purposes (autopilot-qt5)
objectName: "mainView"
// Note! applicationName needs to match the "name" field of the click manifest
applicationName: "qmlobjects.liu-xiao-guo"
/*
This property enables the application to change orientation
when the device is rotated. The default is
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询