Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgeojson_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// Copyright (C) 2018 Julian Sherollari <jdotsh@gmail.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QGEOJSON_H
6#define QGEOJSON_H
7
8#include <QtLocation/private/qlocationglobal_p.h>
9#include <QtCore/QVariantList>
10
11//
12// W A R N I N G
13// -------------
14//
15// This file is not part of the Qt API. It exists purely as an
16// implementation detail. This header file may change from version to
17// version without notice, or even be removed.
18//
19// We mean it.
20//
21
23
24class QJsonDocument;
25class QString;
26
27namespace QGeoJson {
28 // This method imports a GeoJSON file to a QVariantList
29 Q_LOCATION_EXPORT QVariantList importGeoJson(const QJsonDocument &doc);
30
31 // This method exports a GeoJSON file from a QVariantList
32 Q_LOCATION_EXPORT QJsonDocument exportGeoJson(const QVariantList &list);
33
34 // This method exports the content of the imported QVariantList in a
35 // readable format
36 Q_LOCATION_EXPORT QString toString(const QVariantList &importedGeoJson);
37}
38
40
41#endif // QGEOJSON_H
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtLocation \keyword QGeoJson Namespace
QVariantList importGeoJson(const QJsonDocument &geoJson)
This method imports the geoJson document, expected to contain valid GeoJSON data, into a QVariantList...
Definition qgeojson.cpp:935
QJsonDocument exportGeoJson(const QVariantList &geoData)
This method exports the QVariantList geoData, expected to be structured like described in the section...
QString toString(const QVariantList &geoData)
This method accepts the QVariantList geoData, structured as described in \l {Importing GeoJSON},...
Combined button and popup list for selecting options.
QList< int > list
[14]