The QPlaceMatchReply class manages a place matching operation started by an instance of QPlaceManager . 更多...
头: | #include <QPlaceMatchReply> |
qmake: | QT += location |
继承: | QPlaceReply |
QPlaceMatchReply (QObject * parent = nullptr) | |
virtual | ~QPlaceMatchReply () |
QList<QPlace> | places () const |
QPlaceMatchRequest | request () const |
virtual QPlaceReply::Type | type () const override |
void | setPlaces (const QList<QPlace> & places ) |
void | setRequest (const QPlaceMatchRequest & request ) |
If the operation is successful, the number of places in the reply matches those in the request. If a particular place in the request is not found, a default constructed place is used as a place holder in the reply. In this way, there is always a one is to one relationship between input places in the request, and output places in the reply.
If the operation is not successful the number of places is always zero.
见 Matching places between managers for an example on how to use a match reply.
另请参阅 QPlaceMatchRequest and QPlaceManager .
[explicit]
QPlaceMatchReply::
QPlaceMatchReply
(
QObject
*
parent
= nullptr)
Constructs a match reply with a given parent .
[virtual noexcept]
QPlaceMatchReply::
~QPlaceMatchReply
()
Destroys the match reply.
Returns a list of matching places;
另请参阅 setPlaces ().
Returns the match request that was used to generate this reply.
另请参阅 setRequest ().
[protected]
void
QPlaceMatchReply::
setPlaces
(const
QList
<
QPlace
> &
places
)
Sets the list of matching places .
另请参阅 places ().
[protected]
void
QPlaceMatchReply::
setRequest
(const
QPlaceMatchRequest
&
request
)
Sets the match request used to generate this reply.
另请参阅 request ().
[override virtual]
QPlaceReply::Type
QPlaceMatchReply::
type
() const
重实现: QPlaceReply::type() const .
Returns the type of reply.