4#include <QtCore/QObject>
5#include <QtCore/QDebug>
6#include <QtCore/QVariant>
7#include <QtPositioning/QGeoAddress>
8#include <QtPositioning/QGeoLocation>
9#include <QtPositioning/QGeoCircle>
10#include <QtPositioning/QGeoAreaMonitorSource>
52 qDebug() <<
"Could not create default area monitor";
61 qDebug() <<
"Now within 100 meters, current position is" <<
update.coordinate();
68 qDebug() <<
"No longer within 100 meters, current position is" <<
update.coordinate();
void areaEntered(const QGeoAreaMonitorInfo &mon, const QGeoPositionInfo &update)
void areaExited(const QGeoAreaMonitorInfo &mon, const QGeoPositionInfo &update)
void setArea(const QGeoShape &newShape)
Sets the to-be-monitored area to newShape.
static QGeoAreaMonitorSource * createDefaultSource(QObject *parent)
Creates and returns a monitor source with the given parent that monitors areas using resources on the...
virtual bool startMonitoring(const QGeoAreaMonitorInfo &monitor)=0
Returns true if the monitoring of monitor could be successfully started; otherwise returns false.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QVariant property(const char *name) const
Returns the value of the object's name property.
bool setProperty(const char *name, const QVariant &value)
Sets the value of the object's name property to value.
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
void cppQmlInterface(QObject *qmlObject)