【问题标题】:Is there an equivalent to visibleMapRect of IOS in QT/QML?QT/QML中是否有相当于IOS的visibleMapRect?
【发布时间】:2017-12-18 17:21:06
【问题描述】:

在IOS中,visibleMapRect返回地图视图当前显示的区域。

使用 Qt/QML,我们可以从屏幕上的点获取单独的坐标,例如:

PointNW = map.toCoordinate(Qt.point(0,0))

有没有办法直接取回Qt/QML中当前显示的geoRectangle?

感谢您的帮助

【问题讨论】:

    标签: qt maps qml coordinates


    【解决方案1】:

    好的,我找到了!答案是:可见区域

    文档在这里:http://doc.qt.io/qt-5/qml-qtlocation-map.html#visibleRegion-prop

    如何在 C++ 中使用它:QML Map visible region

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-01-17
    • 1970-01-01
    • 1970-01-01
    • 2013-05-16
    • 1970-01-01
    • 1970-01-01
    • 2016-07-23
    • 2017-01-08
    相关资源
    最近更新 更多