内容表

上一话题

QPlaceAttribute

下一话题

QPlaceContactDetail

QPlaceCategory

QPlaceCategory class represents a category that a QPlace can be associated with. 更多

Inheritance diagram of PySide2.QtLocation.QPlaceCategory

概要

函数

详细描述

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 setCategories() function can be used to limit the search results to places with the specified categories.

QGeoServiceProvider supports it, categories can be created and removed. This functionality is available in the QPlaceManager 类。

class QPlaceCategory

QPlaceCategory(other)

param other

QPlaceCategory

Constructs a category.

Constructs a category which is a copy of other .

PySide2.QtLocation.QPlaceCategory. categoryId ( )
返回类型

unicode

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.

另请参阅

setCategoryId()

PySide2.QtLocation.QPlaceCategory. icon ( )
返回类型

QPlaceIcon

Returns the icon associated with the category.

另请参阅

setIcon()

PySide2.QtLocation.QPlaceCategory. isEmpty ( )
返回类型

bool

Returns a boolean indicating whether the all the fields of the place category are empty or not.

PySide2.QtLocation.QPlaceCategory. name ( )
返回类型

unicode

Returns the name of category.

另请参阅

setName()

PySide2.QtLocation.QPlaceCategory. __ne__ ( other )
参数

other QPlaceCategory

返回类型

bool

返回 true 若 other is not equal to this category; otherwise returns false.

PySide2.QtLocation.QPlaceCategory. __eq__ ( other )
参数

other QPlaceCategory

返回类型

bool

返回 true 若 other is equal to this category; otherwise returns false.

PySide2.QtLocation.QPlaceCategory. setCategoryId ( identifier )
参数

identifier – unicode

设置 identifier of the category.

另请参阅

categoryId()

PySide2.QtLocation.QPlaceCategory. setIcon ( icon )
参数

icon QPlaceIcon

设置 icon of the category.

另请参阅

icon()

PySide2.QtLocation.QPlaceCategory. setName ( name )
参数

name – unicode

设置 name of the category.

另请参阅

name()