6#include <QtCore/QJsonArray>
7#include <QtPositioning/QGeoAddress>
8#include <QtPositioning/QGeoCoordinate>
9#include <QtPositioning/QGeoRectangle>
17 categoryName[0] = categoryName[0].
toUpper();
35 if (!
value.isString())
50 streetAddress = addressString;
53 address.setStreet(streetAddress);
57 if (!
value.isObject())
72 address.setCountryCode(countryCode);
76 address.setPostalCode(valueText);
\inmodule QtCore\reentrant
QJsonValue at(qsizetype i) const
Returns a QJsonValue representing the value for index i.
\inmodule QtCore\reentrant
QJsonValue value(const QString &key) const
Returns a QJsonValue representing the value for the key key.
QJsonArray toArray() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
double toDouble(double defaultValue=0) const
Converts the value to a double and returns it.
bool isArray() const
Returns true if the value contains an array.
QString toString() const
Converts the value to a QString and returns it.
bool isObject() const
Returns true if the value contains an object.
static QString mapboxNameForCategory(const QString &category)
static QGeoLocation parseGeoLocation(const QJsonObject &response)
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
QString mid(qsizetype position, qsizetype n=-1) const
Returns a string that contains n characters of this string, starting at the specified position index.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static QString static QString qsizetype indexOf(QChar c, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QString & prepend(QChar c)
QString toUpper() const &
const QLoggingCategory & category()
[1]
static const QCssKnownValue properties[NumProperties - 1]
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLdouble GLdouble GLdouble GLdouble top
GLuint GLuint64EXT address
#define QStringLiteral(str)
char * toString(const MyType &t)
[31]
\inmodule QtCore \reentrant