QPlaceCategory Class▲
-
Header: QPlaceCategory
-
qmake: QT += location
-
Group: QPlaceCategory is part of QtLocation-places, QtLocation-places-data
Detailed Description▲
Categories are used to search for places based on the categories they are associated with. The list/tree of available categories can be obtained from QPlaceManager. The QPlaceSearchRequest::setCategories() function can be used to limit the search results to places with the specified categories.
If the QGeoServiceProvider supports it, categories can be created and removed. This functionality is available in the QPlaceManager class.
Member Function Documentation▲
QPlaceCategory::QPlaceCategory()▲
Constructs a category.
QPlaceCategory::QPlaceCategory(const QPlaceCategory &other)▲
Constructs a category which is a copy of other.
QPlaceCategory::~QPlaceCategory()▲
Destroys the category.
QString QPlaceCategory::categoryId() const▲
Returns the identifier of the category. The category identifier is a string which uniquely identifies this category within a particular QPlaceManager. The identifier is only meaningful to the QPlaceManager that generated it and is not transferable between managers.
See Also▲
See also setCategoryId()
QPlaceIcon QPlaceCategory::icon() const▲
bool QPlaceCategory::isEmpty() const▲
Returns a boolean indicating whether the all the fields of the place category are empty or not.
QString QPlaceCategory::name() const▲
void QPlaceCategory::setCategoryId(const QString &identifier)▲
void QPlaceCategory::setIcon(const QPlaceIcon &icon)▲
void QPlaceCategory::setName(const QString &name)▲
void QPlaceCategory::setVisibility(QLocation::Visibility visibility)▲
QLocation::Visibility QPlaceCategory::visibility() const▲
QPlaceCategory &QPlaceCategory::operator=(const QPlaceCategory &other)▲
Assigns other to this category and returns a reference to this category.