MapPolyline我的QtQuick项目中有一个对象.我需要从C++文件更改路径属性,但我不知道如何做到这一点.
我的qml - 文件:
MapPolyline {
id: mapline
objectName: "MapLine"
line.width: 5
line.color: "green"
path:
{[
{ latitude: 47.219791, longitude: 9.546032 },
{ latitude: 47.219657, longitude: 9.542508 },
{ latitude: 47.2194446, longitude: 9.5437876 }
]}
}
Run Code Online (Sandbox Code Playgroud)
现在我想从C++文件中更改path属性的内容.
谢谢您的帮助!
我想在Qt for iOS中开发一个包含地图的应用程序.在使用过程中,应禁用手机的屏幕锁定.但我找不到任何解决方案如何使用Qt防止iOS中的屏幕锁定.
怎么办?