このページでは

QtPositioning QML Type

グローバルオブジェクト「QtPositioning」は、QMLで位置情報に基づく型を扱う際に役立つ関数を提供します。詳細...

Import Statement: import QtPositioning

メソッド

詳細な説明

import QtPositioning

Item {
    property var coordinate: QtPositioning.coordinate(-27.5, 153.1)
}

メソッドのドキュメント

geoCircle circle()

無効なgeoCircle を生成します。

「geoCircle」も参照してください 。

geoCircle circle(coordinate center, real radius)

center を中心とし、半径がradius メートルのgeoCircle を生成します。

point coordToMercator(coordinate coord)

座標 `coord ` をメルカトル座標に変換し、その結果を返します。

mercatorToCoordも参照してください 。

coordinate coordinate()

無効な座標を生成します。

coordinate coordinate(real latitude, real longitude, real altitude)

指定されたlatitude 、longitude 、およびオプションのaltitude を用いて座標を生成します。latitude とlongitude の両方が有効でなければなりません。そうでない場合、無効な座標が返されます。

coordinateも参照してください 。

coordinate mercatorToCoord(point mercator)

mercator 座標を緯度・経度座標に変換します。

「coordToMercator」も参照してください 。

geoPath path()

空のgeoPath を生成します。

「geoPath」も参照してください 。

geoPath path(list<coordinate> coordinates, real width)

座標と幅からgeoPath を生成します。

「geoPath」も参照してください 。

geoPolygon polygon()

空のポリゴンを生成します。

geoPolygonも参照してください 。

geoPolygon polygon(list<coordinate> coordinates)

座標から多角形を作成します。

geoPolygonも参照してください 。

geoPolygon polygon(list<coordinate> perimeter, list<list<coordinate>> holes)

外周および内側の穴の座標から多角形を作成します。

geoPolygonも参照してください 。

geoRectangle rectangle()

無効なgeoRectangle を生成します。

「geoRectangle」も参照してください 。

geoRectangle rectangle(list<coordinate> coordinates)

座標のリストからgeoRectangle を構築します。返されるリストは、すべての座標を含む最小のリストです。

geoRectangleも参照してください 。

geoRectangle rectangle(coordinate topLeft, coordinate bottomRight)

左上隅をtopLeft 、右下隅をbottomRight に配置した `geoRectangle ` を作成します。

「geoRectangle」も参照してください 。

geoRectangle rectangle(coordinate center, real width, real height)

center を中心とし、幅をwidth 度、高さをheight 度とするgeoRectangle を生成します。

「geoRectangle」も参照してください 。

geoShape shape()

無効なgeoShape を生成します。

「geoShape」も参照してください 。

geoCircle shapeToCircle(geoShape shape)

shape をgeoCircle に変換します。

「geoCircle」も参照してください 。

geoPath shapeToPath(geoShape shape)

shape をgeoPath に変換します。

「geoPath」も参照してください 。

geoPolygon shapeToPolygon(geoShape shape)

shape をポリゴンに変換します。

「geoPolygon」も参照してください 。

geoRectangle shapeToRectangle(geoShape shape)

shape をgeoRectangle に変換します。

「geoRectangle」も参照してください 。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.