QPlaceSearchResult ClassThe QPlaceSearchResult class represents a search result. More... #include <QPlaceSearchResult> This class was introduced in Qt Location 5.0. Public Types
Public Functions
Detailed DescriptionThe QPlaceSearchResult class represents a search result. There are two types of search results. The first is a place result, which contains a place that matched the search request, but also metadata about the place such as the distance from the search center of a search request and whether the result is a sponsored or organic search result. The other type is a correction, which contains an alternative search term that may better reflect the user's intended query. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QPlaceSearchResult::PlaceResult | 0 | The search result contains a place. |
QPlaceSearchResult::CorrectionResult | 1 | The search result contains a search term correction. |
QPlaceSearchResult::UnknownSearchResult | 2 | The contents of the search result are unknown. |
Constructs a new search result.
Constructs a copy of other
Destroys the search result.
Returns the correction term that this particular search result represents. This field is only valid when the search result type is QPlaceSearchResult::CorrectionResult.
See also setCorrection().
Returns the distance of the place to the search center. This field is only valid when the search result type is QPlaceSearchResult::PlaceResult, and where the search request contained a search center. Otherwise, the distance is NaN indicating an undefined distance. The default value for distance is NaN.
See also setDistance().
Returns true if the search result represents a sponsored result.
See also setSponsored().
Returns the place of the search result. This field is only valid when the search result type is QPlaceSearchResult::PlaceResult.
See also setPlace().
Sets the correction term of the search result.
See also correction().
Set the distance of the search result's place from a search center.
See also distance().
Sets the place that this search result refers to.
See also place().
Sets whether the search result represents a sponsored result or not.
See also isSponsored().
Sets the type of the search result.
See also type().
Returns the type of the search result.
See also setType().
Returns true if other not equal to this search result, otherwise returns false.
Assigns other to this search result and returns a reference to this search result.
Returns true if other is equal to this search result, otherwise returns false.