Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qdeclarativegeomap_p.h>
Public Member Functions | |
QDeclarativeGeoMap (QQuickItem *parent=nullptr) | |
\qmltype Map \nativetype QDeclarativeGeoMap \inqmlmodule QtLocation | |
~QDeclarativeGeoMap () | |
void | setPlugin (QDeclarativeGeoServiceProvider *plugin) |
\qmlproperty Plugin QtLocation::Map::plugin | |
QDeclarativeGeoServiceProvider * | plugin () const |
void | setActiveMapType (const QGeoMapType &mapType) |
\qmlproperty mapType QtLocation::Map::activeMapType | |
QGeoMapType | activeMapType () const |
void | setMinimumZoomLevel (qreal minimumZoomLevel, bool userSet=true) |
qreal | minimumZoomLevel () const |
\qmlproperty real QtLocation::Map::minimumZoomLevel | |
void | setMaximumZoomLevel (qreal maximumZoomLevel, bool userSet=true) |
qreal | maximumZoomLevel () const |
\qmlproperty real QtLocation::Map::maximumZoomLevel | |
void | setZoomLevel (qreal zoomLevel) |
\qmlproperty real QtLocation::Map::zoomLevel | |
qreal | zoomLevel () const |
void | setBearing (qreal bearing) |
\qmlproperty real QtLocation::Map::bearing | |
qreal | bearing () const |
void | setTilt (qreal tilt) |
\qmlproperty real QtLocation::Map::tilt | |
qreal | tilt () const |
void | setMinimumTilt (qreal minimumTilt, bool userSet=true) |
qreal | minimumTilt () const |
\qmlproperty real QtLocation::Map::minimumTilt | |
void | setMaximumTilt (qreal maximumTilt, bool userSet=true) |
qreal | maximumTilt () const |
\qmlproperty real QtLocation::Map::maximumTilt | |
void | setFieldOfView (qreal fieldOfView) |
\qmlproperty real QtLocation::Map::fieldOfView | |
qreal | fieldOfView () const |
void | setMinimumFieldOfView (qreal minimumFieldOfView, bool userSet=true) |
qreal | minimumFieldOfView () const |
\qmlproperty real QtLocation::Map::minimumFieldOfView | |
void | setMaximumFieldOfView (qreal maximumFieldOfView, bool userSet=true) |
qreal | maximumFieldOfView () const |
\qmlproperty real QtLocation::Map::maximumFieldOfView | |
void | setCenter (const QGeoCoordinate ¢er) |
\qmlproperty coordinate QtLocation::Map::center | |
QGeoCoordinate | center () const |
void | setVisibleRegion (const QGeoShape &shape) |
\qmlproperty geoshape QtLocation::Map::visibleRegion | |
QGeoShape | visibleRegion () const |
void | setCopyrightsVisible (bool visible) |
\qmlproperty bool QtLocation::Map::copyrightsVisible | |
bool | copyrightsVisible () const |
void | setColor (const QColor &color) |
\qmlproperty color QtLocation::Map::color | |
QColor | color () const |
QRectF | visibleArea () const |
\qmlproperty rect QtLocation::Map::visibleArea | |
void | setVisibleArea (const QRectF &visibleArea) |
bool | mapReady () const |
\qmlproperty bool QtLocation::Map::mapReady | |
QList< QGeoMapType > | supportedMapTypes () |
Q_INVOKABLE void | setBearing (qreal bearing, const QGeoCoordinate &coordinate) |
\qmlmethod void QtLocation::Map::setBearing(real bearing, coordinate coordinate) | |
Q_INVOKABLE void | alignCoordinateToPoint (const QGeoCoordinate &coordinate, const QPointF &point) |
\qmlmethod void QtLocation::Map::alignCoordinateToPoint(coordinate coordinate, QPointF point) | |
Q_INVOKABLE void | removeMapItem (QDeclarativeGeoMapItemBase *item) |
\qmlmethod void QtLocation::Map::removeMapItem(MapItem item) | |
Q_INVOKABLE void | addMapItem (QDeclarativeGeoMapItemBase *item) |
\qmlmethod void QtLocation::Map::addMapItem(MapItem item) | |
Q_INVOKABLE void | addMapItemGroup (QDeclarativeGeoMapItemGroup *itemGroup) |
\qmlmethod void QtLocation::Map::addMapItemGroup(MapItemGroup itemGroup) | |
Q_INVOKABLE void | removeMapItemGroup (QDeclarativeGeoMapItemGroup *itemGroup) |
\qmlmethod void QtLocation::Map::removeMapItemGroup(MapItemGroup itemGroup) | |
Q_INVOKABLE void | removeMapItemView (QDeclarativeGeoMapItemView *itemView) |
\qmlmethod void QtLocation::Map::removeMapItemView(MapItemView itemView) | |
Q_INVOKABLE void | addMapItemView (QDeclarativeGeoMapItemView *itemView) |
\qmlmethod void QtLocation::Map::addMapItemView(MapItemView itemView) | |
Q_INVOKABLE void | clearMapItems () |
\qmlmethod void QtLocation::Map::clearMapItems() | |
QList< QObject * > | mapItems () |
Q_INVOKABLE QGeoCoordinate | toCoordinate (const QPointF &position, bool clipToViewPort=true) const |
\qmlmethod coordinate QtLocation::Map::toCoordinate(QPointF position, bool clipToViewPort) | |
Q_INVOKABLE QPointF | fromCoordinate (const QGeoCoordinate &coordinate, bool clipToViewPort=true) const |
\qmlmethod point QtLocation::Map::fromCoordinate(coordinate coordinate, bool clipToViewPort) | |
Q_INVOKABLE void | fitViewportToMapItems (const QVariantList &items={}) |
\qmlmethod void QtLocation::Map::fitViewportToMapItems(list<MapItems> items = {}) | |
Q_INVOKABLE void | fitViewportToVisibleMapItems () |
\qmlmethod void QtLocation::Map::fitViewportToVisibleMapItems() | |
Q_INVOKABLE void | pan (int dx, int dy) |
\qmlmethod void QtLocation::Map::pan(int dx, int dy) | |
Q_INVOKABLE void | prefetchData () |
\qmlmethod void QtLocation::Map::prefetchData() | |
Q_INVOKABLE void | clearData () |
\qmlmethod void QtLocation::Map::clearData() | |
Q_REVISION (13) Q_INVOKABLE void fitViewportToGeoShape(const QGeoShape &shape | |
void | fitViewportToGeoShape (const QGeoShape &shape, const QMargins &borders=QMargins(10, 10, 10, 10)) |
\qmlmethod void QtLocation::Map::fitViewportToGeoShape(geoShape, margins) | |
QString | errorString () const |
\qmlproperty string QtLocation::Map::errorString | |
QGeoServiceProvider::Error | error () const |
\qmlproperty enumeration QtLocation::Map::error | |
QGeoMap * | map () const |
void | itemChange (ItemChange, const ItemChangeData &) override |
Called when change occurs for this item. | |
Public Member Functions inherited from QQuickItem | |
QQuickItem (QQuickItem *parent=nullptr) | |
Constructs a QQuickItem with the given parent. | |
~QQuickItem () override | |
Destroys the QQuickItem. | |
QQuickWindow * | window () const |
Returns the window in which this item is rendered. | |
QQuickItem * | parentItem () const |
void | setParentItem (QQuickItem *parent) |
void | stackBefore (const QQuickItem *) |
Moves the specified sibling item to the index before this item within the list of children. | |
void | stackAfter (const QQuickItem *) |
Moves the specified sibling item to the index after this item within the list of children. | |
QRectF | childrenRect () |
\qmlpropertygroup QtQuick::Item::childrenRect \qmlproperty real QtQuick::Item::childrenRect.x \qmlproperty real QtQuick::Item::childrenRect.y \qmlproperty real QtQuick::Item::childrenRect.width \qmlproperty real QtQuick::Item::childrenRect.height \readonly | |
QList< QQuickItem * > | childItems () const |
Returns the children of this item. | |
bool | clip () const |
\qmlproperty bool QtQuick::Item::clip This property holds whether clipping is enabled. | |
void | setClip (bool) |
QString | state () const |
\qmlproperty string QtQuick::Item::state | |
void | setState (const QString &) |
qreal | baselineOffset () const |
\qmlproperty int QtQuick::Item::baselineOffset | |
void | setBaselineOffset (qreal) |
QQmlListProperty< QQuickTransform > | transform () |
qreal | x () const |
qreal | y () const |
QPointF | position () const |
void | setX (qreal) |
void | setY (qreal) |
void | setPosition (const QPointF &) |
QBindable< qreal > | bindableX () |
QBindable< qreal > | bindableY () |
qreal | width () const |
void | setWidth (qreal) |
void | resetWidth () |
void | setImplicitWidth (qreal) |
qreal | implicitWidth () const |
Returns the width of the item that is implied by other properties that determine the content. | |
QBindable< qreal > | bindableWidth () |
qreal | height () const |
void | setHeight (qreal) |
void | resetHeight () |
void | setImplicitHeight (qreal) |
qreal | implicitHeight () const |
QBindable< qreal > | bindableHeight () |
QSizeF | size () const |
void | setSize (const QSizeF &size) |
TransformOrigin | transformOrigin () const |
void | setTransformOrigin (TransformOrigin) |
QPointF | transformOriginPoint () const |
void | setTransformOriginPoint (const QPointF &) |
qreal | z () const |
void | setZ (qreal) |
qreal | rotation () const |
void | setRotation (qreal) |
qreal | scale () const |
void | setScale (qreal) |
qreal | opacity () const |
void | setOpacity (qreal) |
bool | isVisible () const |
void | setVisible (bool) |
bool | isEnabled () const |
void | setEnabled (bool) |
bool | smooth () const |
void | setSmooth (bool) |
bool | activeFocusOnTab () const |
\qmlproperty bool QtQuick::Item::activeFocusOnTab | |
void | setActiveFocusOnTab (bool) |
bool | antialiasing () const |
void | setAntialiasing (bool) |
void | resetAntialiasing () |
Flags | flags () const |
Returns the item flags for this item. | |
void | setFlag (Flag flag, bool enabled=true) |
Enables the specified flag for this item if enabled is true; if enabled is false, the flag is disabled. | |
void | setFlags (Flags flags) |
Enables the specified flags for this item. | |
virtual QRectF | boundingRect () const |
Returns the extents of the item in its own coordinate system: a rectangle from {0, 0} to \l width() and \l height(). | |
virtual QRectF | clipRect () const |
Returns the rectangular area within this item that is currently visible in \l viewportItem(), if there is a viewport and the \l ItemObservesViewport flag is set; otherwise, the extents of this item in its own coordinate system: a rectangle from {0, 0} to \l width() and \l height(). | |
QQuickItem * | viewportItem () const |
If the \l ItemObservesViewport flag is set, returns the nearest parent with the \l ItemIsViewport flag. | |
bool | hasActiveFocus () const |
bool | hasFocus () const |
void | setFocus (bool) |
void | setFocus (bool focus, Qt::FocusReason reason) |
bool | isFocusScope () const |
Returns true if this item is a focus scope, and false otherwise. | |
QQuickItem * | scopedFocusItem () const |
If this item is a focus scope, this returns the item in its focus chain that currently has focus. | |
Qt::FocusPolicy | focusPolicy () const |
void | setFocusPolicy (Qt::FocusPolicy policy) |
Sets the focus policy of this item to policy. | |
bool | isAncestorOf (const QQuickItem *child) const |
Returns true if this item is an ancestor of child (i.e., if this item is child's parent, or one of child's parent's ancestors). | |
Qt::MouseButtons | acceptedMouseButtons () const |
Returns the mouse buttons accepted by this item. | |
void | setAcceptedMouseButtons (Qt::MouseButtons buttons) |
Sets the mouse buttons accepted by this item to buttons. | |
bool | acceptHoverEvents () const |
Returns whether hover events are accepted by this item. | |
void | setAcceptHoverEvents (bool enabled) |
If enabled is true, this sets the item to accept hover events; otherwise, hover events are not accepted by this item. | |
bool | acceptTouchEvents () const |
Returns whether touch events are accepted by this item. | |
void | setAcceptTouchEvents (bool accept) |
If enabled is true, this sets the item to accept touch events; otherwise, touch events are not accepted by this item. | |
bool | isUnderMouse () const |
void | grabMouse () |
void | ungrabMouse () |
bool | keepMouseGrab () const |
Returns whether mouse input should exclusively remain with this item. | |
void | setKeepMouseGrab (bool) |
Sets whether the mouse input should remain exclusively with this item. | |
bool | filtersChildMouseEvents () const |
Returns whether pointer events intended for this item's children should be filtered through this item. | |
void | setFiltersChildMouseEvents (bool filter) |
Sets whether pointer events intended for this item's children should be filtered through this item. | |
void | grabTouchPoints (const QList< int > &ids) |
void | ungrabTouchPoints () |
bool | keepTouchGrab () const |
Returns whether the touch points grabbed by this item should exclusively remain with this item. | |
void | setKeepTouchGrab (bool) |
Sets whether the touch points grabbed by this item should remain exclusively with this item. | |
Q_REVISION (2, 4) Q_INVOKABLE bool grabToImage(const QJSValue &callback | |
QSharedPointer< QQuickItemGrabResult > | grabToImage (const QSize &targetSize=QSize()) |
Grabs the item into an in-memory image. | |
virtual Q_INVOKABLE bool | contains (const QPointF &point) const |
\qmlmethod bool QtQuick::Item::contains(point point) | |
QObject * | containmentMask () const |
void | setContainmentMask (QObject *mask) |
QTransform | itemTransform (QQuickItem *, bool *) const |
\qmlmethod point QtQuick::Item::mapFromItem(Item item, real x, real y) \qmlmethod point QtQuick::Item::mapFromItem(Item item, point p) \qmlmethod rect QtQuick::Item::mapFromItem(Item item, real x, real y, real width, real height) \qmlmethod rect QtQuick::Item::mapFromItem(Item item, rect r) | |
QPointF | mapToScene (const QPointF &point) const |
Maps the given point in this item's coordinate system to the equivalent point within the scene's coordinate system, and returns the mapped coordinate. | |
QRectF | mapRectToItem (const QQuickItem *item, const QRectF &rect) const |
Maps the given rect in this item's coordinate system to the equivalent rectangular area within item's coordinate system, and returns the mapped rectangle value. | |
QRectF | mapRectToScene (const QRectF &rect) const |
Maps the given rect in this item's coordinate system to the equivalent rectangular area within the scene's coordinate system, and returns the mapped rectangle value. | |
QPointF | mapFromScene (const QPointF &point) const |
Maps the given point in the scene's coordinate system to the equivalent point within this item's coordinate system, and returns the mapped coordinate. | |
QRectF | mapRectFromItem (const QQuickItem *item, const QRectF &rect) const |
Maps the given rect in item's coordinate system to the equivalent rectangular area within this item's coordinate system, and returns the mapped rectangle value. | |
QRectF | mapRectFromScene (const QRectF &rect) const |
Maps the given rect in the scene's coordinate system to the equivalent rectangular area within this item's coordinate system, and returns the mapped rectangle value. | |
void | polish () |
Schedules a polish event for this item. | |
Q_INVOKABLE QPointF | mapFromItem (const QQuickItem *item, const QPointF &point) const |
Maps the given point in item's coordinate system to the equivalent point within this item's coordinate system, and returns the mapped coordinate. | |
Q_INVOKABLE QPointF | mapFromItem (const QQuickItem *item, qreal x, qreal y) |
Q_INVOKABLE QRectF | mapFromItem (const QQuickItem *item, const QRectF &rect) const |
Q_INVOKABLE QRectF | mapFromItem (const QQuickItem *item, qreal x, qreal y, qreal width, qreal height) const |
Q_INVOKABLE QPointF | mapToItem (const QQuickItem *item, const QPointF &point) const |
Maps the given point in this item's coordinate system to the equivalent point within item's coordinate system, and returns the mapped coordinate. | |
Q_INVOKABLE QPointF | mapToItem (const QQuickItem *item, qreal x, qreal y) |
Q_INVOKABLE QRectF | mapToItem (const QQuickItem *item, const QRectF &rect) const |
Q_INVOKABLE QRectF | mapToItem (const QQuickItem *item, qreal x, qreal y, qreal width, qreal height) const |
Q_REVISION (2, 7) Q_INVOKABLE QPointF mapFromGlobal(qreal x | |
Q_REVISION (2, 7) Q_INVOKABLE QPointF mapFromGlobal(const QPointF &point) const | |
Q_REVISION (2, 7) Q_INVOKABLE QPointF mapToGlobal(qreal x | |
Q_REVISION (2, 7) Q_INVOKABLE QPointF mapToGlobal(const QPointF &point) const | |
Q_INVOKABLE void | forceActiveFocus () |
\qmlmethod point QtQuick::Item::mapToItem(Item item, real x, real y) \qmlmethod point QtQuick::Item::mapToItem(Item item, point p) \qmlmethod rect QtQuick::Item::mapToItem(Item item, real x, real y, real width, real height) \qmlmethod rect QtQuick::Item::mapToItem(Item item, rect r) | |
Q_INVOKABLE void | forceActiveFocus (Qt::FocusReason reason) |
\qmlmethod QtQuick::Item::forceActiveFocus(Qt::FocusReason reason) This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Forces active focus on the item with the given reason. | |
Q_REVISION (2, 1) Q_INVOKABLE QQuickItem *nextItemInFocusChain(bool forward | |
Q_INVOKABLE QQuickItem * | childAt (qreal x, qreal y) const |
\qmlmethod QtQuick::Item::childAt(real x, real y) | |
Q_REVISION (6, 3) Q_INVOKABLE void ensurePolished() | |
Q_REVISION (6, 3) Q_INVOKABLE void dumpItemTree() const | |
virtual bool | isTextureProvider () const |
Returns true if this item is a texture provider. | |
virtual QSGTextureProvider * | textureProvider () const |
Returns the texture provider for an item. | |
Public Member Functions inherited from QObject | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
bool | moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL) |
Changes the thread affinity for this object and its children and returns true on success. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
void | killTimer (Qt::TimerId id) |
template<typename T > | |
T | findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T > | |
QList< T > | findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. | |
template<typename T > | |
T | findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<typename T > | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false . | |
Public Member Functions inherited from QQmlParserStatus | |
QQmlParserStatus () | |
virtual | ~QQmlParserStatus () |
Public Attributes | |
QVariant | margins |
Public Attributes inherited from QQuickItem | |
const QSize & | targetSize = QSize()) |
qreal y | const |
Protected Member Functions | |
void | componentComplete () override |
QSGNode * | updatePaintNode (QSGNode *, UpdatePaintNodeData *) override |
void | geometryChange (const QRectF &newGeometry, const QRectF &oldGeometry) override |
void | setError (QGeoServiceProvider::Error error, const QString &errorString) |
void | initialize () |
void | setZoomLevel (qreal zoomLevel, bool overzoom) |
bool | addMapChild (QObject *child) |
bool | removeMapChild (QObject *child) |
bool | isGroupNested (QDeclarativeGeoMapItemGroup *group) const |
bool | addMapItem_real (QDeclarativeGeoMapItemBase *item) |
bool | removeMapItem_real (QDeclarativeGeoMapItemBase *item) |
bool | addMapItemGroup_real (QDeclarativeGeoMapItemGroup *itemGroup) |
bool | removeMapItemGroup_real (QDeclarativeGeoMapItemGroup *itemGroup) |
bool | addMapItemView_real (QDeclarativeGeoMapItemView *itemView) |
bool | removeMapItemView_real (QDeclarativeGeoMapItemView *itemView) |
void | updateItemToWindowTransform () |
void | onSGNodeChanged () |
Protected Member Functions inherited from QQuickItem | |
bool | event (QEvent *) override |
\reimp | |
bool | isComponentComplete () const |
Returns true if construction of the QML component is complete; otherwise returns false. | |
bool | widthValid () const |
Returns whether the width property has been set explicitly. | |
bool | heightValid () const |
Returns whether the height property has been set explicitly. | |
void | setImplicitSize (qreal, qreal) |
void | classBegin () override |
\reimp Derived classes should call the base class method before adding their own action to perform at classBegin. | |
void | componentComplete () override |
\reimp Derived classes should call the base class method before adding their own actions to perform at componentComplete. | |
virtual void | keyPressEvent (QKeyEvent *event) |
This event handler can be reimplemented in a subclass to receive key press events for an item. | |
virtual void | keyReleaseEvent (QKeyEvent *event) |
This event handler can be reimplemented in a subclass to receive key release events for an item. | |
virtual void | focusInEvent (QFocusEvent *) |
This event handler can be reimplemented in a subclass to receive focus-in events for an item. | |
virtual void | focusOutEvent (QFocusEvent *) |
This event handler can be reimplemented in a subclass to receive focus-out events for an item. | |
virtual void | mousePressEvent (QMouseEvent *event) |
This event handler can be reimplemented in a subclass to receive mouse press events for an item. | |
virtual void | mouseMoveEvent (QMouseEvent *event) |
This event handler can be reimplemented in a subclass to receive mouse move events for an item. | |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
This event handler can be reimplemented in a subclass to receive mouse release events for an item. | |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
This event handler can be reimplemented in a subclass to receive mouse double-click events for an item. | |
virtual void | mouseUngrabEvent () |
This event handler can be reimplemented in a subclass to be notified when a mouse ungrab event has occurred on this item. | |
virtual void | touchUngrabEvent () |
This event handler can be reimplemented in a subclass to be notified when a touch ungrab event has occurred on this item. | |
virtual void | touchEvent (QTouchEvent *event) |
This event handler can be reimplemented in a subclass to receive touch events for an item. | |
virtual void | hoverEnterEvent (QHoverEvent *event) |
This event handler can be reimplemented in a subclass to receive hover-enter events for an item. | |
virtual void | hoverMoveEvent (QHoverEvent *event) |
This event handler can be reimplemented in a subclass to receive hover-move events for an item. | |
virtual void | hoverLeaveEvent (QHoverEvent *event) |
This event handler can be reimplemented in a subclass to receive hover-leave events for an item. | |
virtual bool | childMouseEventFilter (QQuickItem *, QEvent *) |
Reimplement this method to filter the pointer events that are received by this item's children. | |
virtual void | releaseResources () |
This function is called when an item should release graphics resources which are not already managed by the nodes returned from QQuickItem::updatePaintNode(). | |
virtual void | updatePolish () |
This function should perform any layout as required for this item. | |
QQuickItem (QQuickItemPrivate &dd, QQuickItem *parent=nullptr) | |
Protected Member Functions inherited from QObject | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
Properties | |
QDeclarativeGeoServiceProvider * | plugin |
qreal | minimumZoomLevel |
qreal | maximumZoomLevel |
qreal | zoomLevel |
qreal | tilt |
qreal | minimumTilt |
qreal | maximumTilt |
qreal | bearing |
qreal | fieldOfView |
qreal | minimumFieldOfView |
qreal | maximumFieldOfView |
QGeoMapType | activeMapType |
QList< QGeoMapType > | supportedMapTypes |
\qmlproperty list<mapType> QtLocation::Map::supportedMapTypes | |
QGeoCoordinate | center |
QList< QObject * > | mapItems |
\qmlproperty list<MapItem> QtLocation::Map::mapItems | |
QGeoServiceProvider::Error | error |
QString | errorString |
QGeoShape | visibleRegion |
bool | copyrightsVisible |
QColor | color |
bool | mapReady |
QRectF | visibleArea |
Properties inherited from QQuickItem | |
QQuickItem * | parent |
\qmlproperty Item QtQuick::Item::parent This property holds the visual parent of the item. | |
qreal | x |
\qmlproperty real QtQuick::Item::x \qmlproperty real QtQuick::Item::y \qmlproperty real QtQuick::Item::width \qmlproperty real QtQuick::Item::height | |
qreal | y |
Defines the item's y position relative to its parent. | |
qreal | z |
\qmlproperty real QtQuick::Item::z | |
qreal | width |
This property holds the width of this item. | |
qreal | height |
This property holds the height of this item. | |
qreal | opacity |
\qmlproperty real QtQuick::Item::opacity | |
bool | enabled |
\qmlproperty bool QtQuick::Item::enabled | |
bool | visible |
\qmlproperty bool QtQuick::Item::visible | |
Qt::FocusPolicy | focusPolicy |
\qmlproperty enumeration QtQuick::Item::focusPolicy | |
qreal | rotation |
\qmlproperty real QtQuick::Item::rotation This property holds the rotation of the item in degrees clockwise around its transformOrigin. | |
qreal | scale |
\qmlproperty real QtQuick::Item::scale This property holds the scale factor for this item. | |
TransformOrigin | transformOrigin |
\qmlproperty enumeration QtQuick::Item::transformOrigin This property holds the origin point around which scale and rotation transform. | |
QPointF | transformOriginPoint |
QQmlListProperty< QQuickTransform > | transform |
\qmlproperty list<Transform> QtQuick::Item::transform This property holds the list of transformations to apply. | |
bool | smooth |
\qmlproperty bool QtQuick::Item::smooth | |
bool | antialiasing |
\qmlproperty bool QtQuick::Item::antialiasing | |
qreal | implicitWidth |
qreal | implicitHeight |
QObject * | containmentMask |
\qmlproperty QObject* QtQuick::Item::containmentMask | |
Properties inherited from QObject | |
QString | objectName |
the name of this object | |
Friends | |
class | QDeclarativeGeoMapItem |
class | QDeclarativeGeoMapItemView |
class | QDeclarativeGeoMapCopyrightNotice |
Additional Inherited Members | |
Public Types inherited from QQuickItem | |
enum | Flag { ItemClipsChildrenToShape = 0x01 , ItemIsFocusScope = 0x04 , ItemHasContents = 0x08 , ItemAcceptsDrops = 0x10 , ItemIsViewport = 0x20 , ItemObservesViewport = 0x40 } |
\qmltype Item \nativetype QQuickItem \inherits QtObject \inqmlmodule QtQuick More... | |
enum | ItemChange { ItemChildAddedChange , ItemChildRemovedChange , ItemSceneChange , ItemVisibleHasChanged , ItemParentHasChanged , ItemOpacityHasChanged , ItemActiveFocusHasChanged , ItemRotationHasChanged , ItemAntialiasingHasChanged , ItemDevicePixelRatioHasChanged , ItemEnabledHasChanged , ItemScaleHasChanged , ItemTransformHasChanged } |
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes. More... | |
enum | TransformOrigin { TopLeft , Top , TopRight , Left , Center , Right , BottomLeft , Bottom , BottomRight } |
\variable QQuickItem::ItemChangeData::realValue The numeric value that has changed: \l {QQuickItem::opacity()}{opacity}, \l {QQuickItem::rotation()}{rotation}, or \l {QQuickItem::scale()}{scale}, or \l {QScreen::devicePixelRatio}{device pixel ratio}. More... | |
Public Slots inherited from QQuickItem | |
void | update () |
Schedules a call to updatePaintNode() for this item. | |
Public Slots inherited from QObject | |
void | deleteLater () |
\threadsafe | |
Static Public Member Functions inherited from QObject | |
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
\threadsafe | |
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
\threadsafe | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static bool | disconnect (const QMetaObject::Connection &) |
Disconnect a connection. | |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
template<typename Func1 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
Protected Attributes inherited from QObject | |
QScopedPointer< QObjectData > | d_ptr |
Related Symbols inherited from QObject | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) | |
Definition at line 40 of file qdeclarativegeomap_p.h.
|
explicit |
\qmltype Map \nativetype QDeclarativeGeoMap \inqmlmodule QtLocation
The Map type displays a map.
The Map type is used to display a map or image of the Earth, with the capability to also display interactive objects tied to the map's surface.
There are a variety of different ways to visualize the Earth's surface in a 2-dimensional manner, but all of them involve some kind of projection: a mathematical relationship between the 3D coordinates (latitude, longitude and altitude) and 2D coordinates (X and Y in pixels) on the screen.
Different sources of map data can use different projections, and from the point of view of the Map type, we treat these as one replaceable unit: the Map plugin. A Map plugin consists of a data source, as well as all other details needed to display its data on-screen.
The current Map plugin in use is contained in the \l plugin property of the Map item. In order to display any image in a Map item, you will need to set this property. See the \l Plugin type for a description of how to retrieve an appropriate plugin for use.
The geographic region displayed in the Map item is referred to as its viewport, and this is defined by the properties \l center, and \l zoomLevel. The \l center property contains a \l {coordinate} specifying the center of the viewport, while \l zoomLevel controls the scale of the map. See each of these properties for further details about their values.
When the map is displayed, each possible geographic coordinate that is visible will map to some pixel X and Y coordinate on the screen. To perform conversions between these two, Map provides the \l toCoordinate and \l fromCoordinate functions, which are of general utility.
Definition at line 126 of file qdeclarativegeomap.cpp.
QDeclarativeGeoMap::~QDeclarativeGeoMap | ( | ) |
Definition at line 159 of file qdeclarativegeomap.cpp.
QGeoMapType QDeclarativeGeoMap::activeMapType | ( | ) | const |
Definition at line 1865 of file qdeclarativegeomap.cpp.
|
signal |
|
protected |
Definition at line 679 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::addMapItem | ( | QDeclarativeGeoMapItemBase * | item | ) |
\qmlmethod void QtLocation::Map::addMapItem(MapItem item)
Adds the given item to the Map (for example MapQuickItem, MapCircle). If the object already is on the Map, it will not be added again.
As an example, consider the case where you have a MapCircle representing your current position:
\codeline
Definition at line 1603 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 1609 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::addMapItemGroup | ( | QDeclarativeGeoMapItemGroup * | itemGroup | ) |
\qmlmethod void QtLocation::Map::addMapItemGroup(MapItemGroup itemGroup)
Adds the map items contained in the given itemGroup to the Map (for example MapQuickItem, MapCircle).
Definition at line 1702 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 1708 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::addMapItemView | ( | QDeclarativeGeoMapItemView * | itemView | ) |
\qmlmethod void QtLocation::Map::addMapItemView(MapItemView itemView)
Adds itemView to the Map.
Definition at line 1820 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 1826 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::alignCoordinateToPoint | ( | const QGeoCoordinate & | coordinate, |
const QPointF & | point ) |
\qmlmethod void QtLocation::Map::alignCoordinateToPoint(coordinate coordinate, QPointF point)
Aligns coordinate to point. This method effectively extends the functionality offered by the \l center qml property, allowing to align a coordinate to point of the Map element other than its center. This is useful in those applications where the center of the scene (e.g., a cursor) is not to be placed exactly in the center of the map.
If the map is tilted, and coordinate happens to be behind the camera, or if the map is not ready (see \l mapReady), calling this method will have no effect.
The release of this API with Qt 5.10 is a Technology Preview.
Definition at line 1281 of file qdeclarativegeomap.cpp.
qreal QDeclarativeGeoMap::bearing | ( | ) | const |
Definition at line 790 of file qdeclarativegeomap.cpp.
QGeoCoordinate QDeclarativeGeoMap::center | ( | ) | const |
Definition at line 1054 of file qdeclarativegeomap.cpp.
|
signal |
void QDeclarativeGeoMap::clearData | ( | ) |
\qmlmethod void QtLocation::Map::clearData()
Clears map data collected by the currently selected plugin.
Definition at line 1370 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::clearMapItems | ( | ) |
\qmlmethod void QtLocation::Map::clearMapItems()
Removes all items and item groups from the map.
Definition at line 1663 of file qdeclarativegeomap.cpp.
QColor QDeclarativeGeoMap::color | ( | ) | const |
Definition at line 1176 of file qdeclarativegeomap.cpp.
|
overrideprotectedvirtual |
Implements QQmlParserStatus.
Definition at line 328 of file qdeclarativegeomap.cpp.
bool QDeclarativeGeoMap::copyrightsVisible | ( | ) | const |
Definition at line 1153 of file qdeclarativegeomap.cpp.
|
signal |
QGeoServiceProvider::Error QDeclarativeGeoMap::error | ( | ) | const |
\qmlproperty enumeration QtLocation::Map::error
This read-only property holds the last occurred mapping service provider error.
\list
Definition at line 1467 of file qdeclarativegeomap.cpp.
|
signal |
QString QDeclarativeGeoMap::errorString | ( | ) | const |
\qmlproperty string QtLocation::Map::errorString
This read-only property holds the textual presentation of the latest mapping provider error. If no error has occurred, an empty string is returned.
An empty string may also be returned if an error occurred which has no associated textual representation.
Definition at line 1446 of file qdeclarativegeomap.cpp.
qreal QDeclarativeGeoMap::fieldOfView | ( | ) | const |
Definition at line 888 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::fitViewportToGeoShape | ( | const QGeoShape & | shape, |
const QMargins & | borders = QMargins(10, 10, 10, 10) ) |
\qmlmethod void QtLocation::Map::fitViewportToGeoShape(geoShape, margins)
Fits the viewport to a specific geo shape geoShape. The margins are in screen pixels.
Definition at line 1388 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::fitViewportToMapItems | ( | const QVariantList & | items = {} | ) |
\qmlmethod void QtLocation::Map::fitViewportToMapItems(list<MapItems> items = {})
If no argument is provided, fits the current viewport to the boundary of all map items. The camera is positioned in the center of the map items, and at the largest integral zoom level possible which allows all map items to be visible on screen. If items is provided, fits the current viewport to the boundary of the specified map items only.
Definition at line 1937 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::fitViewportToVisibleMapItems | ( | ) |
\qmlmethod void QtLocation::Map::fitViewportToVisibleMapItems()
Fits the current viewport to the boundary of all visible map items. The camera is positioned in the center of the map items, and at the largest integral zoom level possible which allows all map items to be visible on screen.
Definition at line 1961 of file qdeclarativegeomap.cpp.
QPointF QDeclarativeGeoMap::fromCoordinate | ( | const QGeoCoordinate & | coordinate, |
bool | clipToViewPort = true ) const |
\qmlmethod point QtLocation::Map::fromCoordinate(coordinate coordinate, bool clipToViewPort)
Returns the position relative to the map item which corresponds to the coordinate.
If clipToViewPort is true
, or not supplied then returns an invalid QPointF if coordinate is not within the current viewport.
Definition at line 1318 of file qdeclarativegeomap.cpp.
|
overrideprotectedvirtual |
Reimplemented from QQuickItem.
Definition at line 1873 of file qdeclarativegeomap.cpp.
|
protected |
Called when the mapping manager is initialized AND the declarative element has a valid size > 0
Definition at line 239 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 715 of file qdeclarativegeomap.cpp.
|
overridevirtual |
Called when change occurs for this item.
value contains extra information relating to the change, when applicable.
If you re-implement this method in a subclass, be sure to call
typically at the end of your implementation, to ensure the \l windowChanged() signal will be emitted.
Reimplemented from QQuickItem.
Definition at line 1477 of file qdeclarativegeomap.cpp.
QGeoMap * QDeclarativeGeoMap::map | ( | ) | const |
Definition at line 1472 of file qdeclarativegeomap.cpp.
|
signal |
bool QDeclarativeGeoMap::mapReady | ( | ) | const |
\qmlproperty bool QtLocation::Map::mapReady
This property holds whether the map has been successfully initialized and is ready to be used. Some methods, such as \l fromCoordinate and \l toCoordinate, will not work before the map is ready. Due to the architecture of the \l Map, it's advised to use the signal emitted for this property in place of \l {QtQml::Component::completed()}{Component.onCompleted}, to make sure that everything behaves as expected.
Definition at line 1235 of file qdeclarativegeomap.cpp.
|
signal |
qreal QDeclarativeGeoMap::maximumFieldOfView | ( | ) | const |
\qmlproperty real QtLocation::Map::maximumFieldOfView
This property holds the maximum valid field of view for the map, in degrees.
The minimum tilt field of view by the \l plugin used is an upper bound for this property. If the \l plugin property is not set or the plugin does not support mapping, this property is 179
.
Definition at line 961 of file qdeclarativegeomap.cpp.
qreal QDeclarativeGeoMap::maximumTilt | ( | ) | const |
\qmlproperty real QtLocation::Map::maximumTilt
This property holds the maximum valid tilt for the map, in degrees.
The maximum tilt defined by the \l plugin used is an upper bound for this property. If the \l plugin property is not set or the plugin does not support mapping, this property is 89.5
.
Since QtLocation 5.12, plugins can additionally restrict this value depending on the current zoom level.
Definition at line 1019 of file qdeclarativegeomap.cpp.
qreal QDeclarativeGeoMap::maximumZoomLevel | ( | ) | const |
\qmlproperty real QtLocation::Map::maximumZoomLevel
This property holds the maximum valid zoom level for the map.
The maximum zoom level is defined by the \l plugin used. If the \l plugin property is not set or the plugin does not support mapping, this property is 30
.
Definition at line 619 of file qdeclarativegeomap.cpp.
qreal QDeclarativeGeoMap::minimumFieldOfView | ( | ) | const |
\qmlproperty real QtLocation::Map::minimumFieldOfView
This property holds the minimum valid field of view for the map, in degrees.
The minimum tilt field of view by the \l plugin used is a lower bound for this property. If the \l plugin property is not set or the plugin does not support mapping, this property is 1
.
Definition at line 926 of file qdeclarativegeomap.cpp.
qreal QDeclarativeGeoMap::minimumTilt | ( | ) | const |
\qmlproperty real QtLocation::Map::minimumTilt
This property holds the minimum valid tilt for the map, in degrees.
The minimum tilt defined by the \l plugin used is a lower bound for this property. If the \l plugin property is not set or the plugin does not support mapping, this property is 0
.
Since QtLocation 5.12, plugins can additionally restrict this value depending on the current zoom level.
Definition at line 981 of file qdeclarativegeomap.cpp.
qreal QDeclarativeGeoMap::minimumZoomLevel | ( | ) | const |
\qmlproperty real QtLocation::Map::minimumZoomLevel
This property holds the minimum valid zoom level for the map.
The minimum zoom level defined by the \l plugin used is a lower bound for this property. However, the returned value is also canvas-size-dependent, and can be higher than the user-specified value, or than the minimum zoom level defined by the plugin used, to prevent the map from being smaller than the viewport in either dimension.
If the \l plugin property is not set or the plugin does not support mapping, this property is 0
.
Definition at line 582 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 1805 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::pan | ( | int | dx, |
int | dy ) |
\qmlmethod void QtLocation::Map::pan(int dx, int dy)
Starts panning the map by dx pixels along the x-axis and by dy pixels along the y-axis.
Positive values for dx move the map right, negative values left. Positive values for dy move the map down, negative values up.
During panning the \l center, and \l zoomLevel may change.
Definition at line 1337 of file qdeclarativegeomap.cpp.
QDeclarativeGeoServiceProvider * QDeclarativeGeoMap::plugin | ( | ) | const |
Definition at line 538 of file qdeclarativegeomap.cpp.
|
signal |
void QDeclarativeGeoMap::prefetchData | ( | ) |
\qmlmethod void QtLocation::Map::prefetchData()
Optional hint that allows the map to prefetch during this idle period
Definition at line 1356 of file qdeclarativegeomap.cpp.
QDeclarativeGeoMap::Q_REVISION | ( | 13 | ) | const & |
|
signal |
|
protected |
Definition at line 697 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::removeMapItem | ( | QDeclarativeGeoMapItemBase * | ptr | ) |
\qmlmethod void QtLocation::Map::removeMapItem(MapItem item)
Removes the given item from the Map (for example MapQuickItem, MapCircle). If the MapItem does not exist or was not previously added to the map, the method does nothing.
Definition at line 1633 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 1639 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::removeMapItemGroup | ( | QDeclarativeGeoMapItemGroup * | itemGroup | ) |
\qmlmethod void QtLocation::Map::removeMapItemGroup(MapItemGroup itemGroup)
Removes itemGroup and the items contained therein from the Map.
Definition at line 1738 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 1744 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::removeMapItemView | ( | QDeclarativeGeoMapItemView * | itemView | ) |
\qmlmethod void QtLocation::Map::removeMapItemView(MapItemView itemView)
Removes itemView and the items instantiated by it from the Map.
Definition at line 1773 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 1779 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::setActiveMapType | ( | const QGeoMapType & | mapType | ) |
\qmlproperty mapType QtLocation::Map::activeMapType
Access to the currently active \l{mapType}{map type}.
This property can be set to change the active \l{mapType}{map type}. See the \l{Map::supportedMapTypes}{supportedMapTypes} property for possible values.
Definition at line 1849 of file qdeclarativegeomap.cpp.
\qmlproperty real QtLocation::Map::bearing
This property holds the bearing for the map. The default value is 0. If the Plugin used for the Map supports bearing, the valid range for this value is between 0 and 360. If the Plugin used for the Map does not support bearing, changing this property will have no effect.
Definition at line 742 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::setBearing | ( | qreal | bearing, |
const QGeoCoordinate & | coordinate ) |
\qmlmethod void QtLocation::Map::setBearing(real bearing, coordinate coordinate)
Sets the bearing for the map to bearing, rotating it around coordinate. If the Plugin used for the Map supports bearing, the valid range for bearing is between 0 and 360. If the Plugin used for the Map does not support bearing, or if the map is tilted and coordinate happens to be behind the camera, or if the map is not ready (see \l mapReady), calling this method will have no effect.
The release of this API with Qt 5.10 is a Technology Preview.
Definition at line 772 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::setCenter | ( | const QGeoCoordinate & | center | ) |
\qmlproperty coordinate QtLocation::Map::center
This property holds the coordinate which occupies the center of the mapping viewport. Invalid center coordinates are ignored.
The default value is an arbitrary valid coordinate.
Definition at line 1032 of file qdeclarativegeomap.cpp.
\qmlproperty color QtLocation::Map::color
This property holds the background color of the map element.
Definition at line 1167 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::setCopyrightsVisible | ( | bool | visible | ) |
\qmlproperty bool QtLocation::Map::copyrightsVisible
This property holds the visibility of the copyrights notice. The notice is usually displayed in the bottom left corner. By default, this property is set to true
.
Definition at line 1141 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 226 of file qdeclarativegeomap.cpp.
\qmlproperty real QtLocation::Map::fieldOfView
This property holds the field of view of the camera used to look at the map, in degrees. If the plugin property of the map is not set, or the plugin does not support mapping, the value is 45 degrees.
Note that changing this value implicitly changes also the distance between the camera and the map, so that, at a tilting angle of 0 degrees, the resulting image is identical for any value used for this property.
For more information about this parameter, consult the Wikipedia articles about \l {https://en.wikipedia.org/wiki/Field_of_view} {Field of view} and \l {https://en.wikipedia.org/wiki/Angle_of_view} {Angle of view}.
Definition at line 869 of file qdeclarativegeomap.cpp.
Definition at line 931 of file qdeclarativegeomap.cpp.
Definition at line 986 of file qdeclarativegeomap.cpp.
Sets the gesture areas maximum zoom level. If the camera capabilities has been set this method honors the boundaries set by it.
Definition at line 592 of file qdeclarativegeomap.cpp.
Definition at line 895 of file qdeclarativegeomap.cpp.
Definition at line 835 of file qdeclarativegeomap.cpp.
Sets the gesture areas minimum zoom level. If the camera capabilities has been set this method honors the boundaries set by it. The minimum zoom level will also have a lower bound dependent on the size of the canvas, effectively preventing to display out of bounds areas.
Definition at line 550 of file qdeclarativegeomap.cpp.
void QDeclarativeGeoMap::setPlugin | ( | QDeclarativeGeoServiceProvider * | plugin | ) |
\qmlproperty Plugin QtLocation::Map::plugin
This property holds the plugin which provides the mapping functionality.
This is a write-once property. Once the map has a plugin associated with it, any attempted modifications of the plugin will be ignored.
Definition at line 394 of file qdeclarativegeomap.cpp.
\qmlproperty real QtLocation::Map::tilt
This property holds the tilt for the map, in degrees. The default value is 0. The valid range for this value is [ minimumTilt, maximumTilt ]. If the Plugin used for the Map does not support tilting, changing this property will have no effect.
Definition at line 809 of file qdeclarativegeomap.cpp.
Definition at line 1198 of file qdeclarativegeomap.cpp.
\qmlproperty geoshape QtLocation::Map::visibleRegion
This property holds the region which occupies the viewport of the map. The camera is positioned in the center of the shape, and at the largest integral zoom level possible which allows the whole shape to be visible on the screen. This implies that reading this property back shortly after having been set the returned area is equal or larger than the set area.
Setting this property implicitly changes the \l center and \l zoomLevel of the map. Any previously set value to those properties will be overridden.
Definition at line 1080 of file qdeclarativegeomap.cpp.
\qmlproperty real QtLocation::Map::zoomLevel
This property holds the zoom level for the map.
Larger values for the zoom level provide more detail. Zoom levels are always non-negative. The default value is 8.0. Depending on the plugin in use, values outside the [minimumZoomLevel, maximumZoomLevel] range, which represent the range for which tiles are available, may be accepted, or clamped.
Definition at line 634 of file qdeclarativegeomap.cpp.
Sets the zoom level. Larger values for the zoom level provide more detail. Zoom levels are always non-negative. The default value is 8.0. Values outside the [minimumZoomLevel, maximumZoomLevel] range, which represent the range for which tiles are available, can be accepted or clamped by setting the overzoom argument to true or false respectively.
Definition at line 649 of file qdeclarativegeomap.cpp.
QList< QGeoMapType > QDeclarativeGeoMap::supportedMapTypes | ( | ) |
|
signal |
qreal QDeclarativeGeoMap::tilt | ( | ) | const |
Definition at line 828 of file qdeclarativegeomap.cpp.
QGeoCoordinate QDeclarativeGeoMap::toCoordinate | ( | const QPointF & | position, |
bool | clipToViewPort = true ) const |
\qmlmethod coordinate QtLocation::Map::toCoordinate(QPointF position, bool clipToViewPort)
Returns the coordinate which corresponds to the position relative to the map item.
If clipToViewPort is true
, or not supplied then returns an invalid coordinate if position is not within the current viewport.
Definition at line 1302 of file qdeclarativegeomap.cpp.
|
protected |
Definition at line 1790 of file qdeclarativegeomap.cpp.
|
overrideprotectedvirtual |
Reimplemented from QQuickItem.
Definition at line 363 of file qdeclarativegeomap.cpp.
QRectF QDeclarativeGeoMap::visibleArea | ( | ) | const |
\qmlproperty rect QtLocation::Map::visibleArea
This property holds the visible area inside the Map QML element. It is a rect whose coordinates are relative to the Map element. Its size will be clamped to the size of the Map element. A null visibleArea means that the whole Map is visible.
Definition at line 1191 of file qdeclarativegeomap.cpp.
|
signal |
QGeoShape QDeclarativeGeoMap::visibleRegion | ( | ) | const |
Definition at line 1106 of file qdeclarativegeomap.cpp.
qreal QDeclarativeGeoMap::zoomLevel | ( | ) | const |
Definition at line 725 of file qdeclarativegeomap.cpp.
|
friend |
Definition at line 274 of file qdeclarativegeomap_p.h.
|
friend |
Definition at line 272 of file qdeclarativegeomap_p.h.
|
friend |
Definition at line 273 of file qdeclarativegeomap_p.h.
QVariant QDeclarativeGeoMap::margins |
Definition at line 155 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 61 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 55 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 63 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 69 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 68 of file qdeclarativegeomap_p.h.
|
read |
Definition at line 65 of file qdeclarativegeomap_p.h.
|
read |
Definition at line 66 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 57 of file qdeclarativegeomap_p.h.
\qmlproperty list<MapItem> QtLocation::Map::mapItems
Returns the list of all map items in no particular order. These items include items that were declared statically as part of the type declaration, as well as dynamical items (\l addMapItem, \l MapItemView).
Definition at line 64 of file qdeclarativegeomap_p.h.
|
read |
Definition at line 70 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 59 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 53 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 48 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 58 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 52 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 47 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 46 of file qdeclarativegeomap_p.h.
|
read |
\qmlproperty list<mapType> QtLocation::Map::supportedMapTypes
This read-only property holds the set of \l{mapType}{map types} supported by this map.
Definition at line 62 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 51 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 71 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 67 of file qdeclarativegeomap_p.h.
|
readwrite |
Definition at line 49 of file qdeclarativegeomap_p.h.