QPlaceCategory¶
The
QPlaceCategory
class represents a category that aQPlace
can be associated with. More…
Synopsis¶
Functions¶
def
__eq__
(other)def
__ne__
(other)def
categoryId
()def
icon
()def
isEmpty
()def
name
()def
setCategoryId
(identifier)def
setIcon
(icon)def
setName
(name)
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
. ThesetCategories()
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 theQPlaceManager
class.
- class PySide2.QtLocation.QPlaceCategory¶
PySide2.QtLocation.QPlaceCategory(other)
- param other:
Constructs a category.
Constructs a category which is a copy of
other
.
- PySide2.QtLocation.QPlaceCategory.categoryId()¶
- Return type:
str
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 theQPlaceManager
that generated it and is not transferable between managers.See also
- PySide2.QtLocation.QPlaceCategory.icon()¶
- Return type:
Returns the icon associated with the category.
See also
- PySide2.QtLocation.QPlaceCategory.isEmpty()¶
- Return type:
bool
Returns a boolean indicating whether the all the fields of the place category are empty or not.
- PySide2.QtLocation.QPlaceCategory.name()¶
- Return type:
str
Returns the name of category.
See also
- PySide2.QtLocation.QPlaceCategory.__ne__(other)¶
- Parameters:
- Return type:
bool
Returns true if
other
is not equal to this category; otherwise returns false.
- PySide2.QtLocation.QPlaceCategory.__eq__(other)¶
- Parameters:
- Return type:
bool
Returns true if
other
is equal to this category; otherwise returns false.
- PySide2.QtLocation.QPlaceCategory.setCategoryId(identifier)¶
- Parameters:
identifier – str
Sets the
identifier
of the category.See also
- PySide2.QtLocation.QPlaceCategory.setIcon(icon)¶
- Parameters:
Sets the
icon
of the category.See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.