CategoryThe Category element represents a category that a Place can be associated with. More... Inherits QtObject This type was introduced in Qt Location 5.0. Properties
Methods
Detailed DescriptionCategories are used to search for places based on the categories they are associated with. The list of available categories can be obtained from the CategoryModel. The PlaceSearchModel has a categories property that is used to limit the search results to places with the specified categories. If the Plugin supports it, categories can be created or removed. To create a new category construct a new Category object and set its properties, then invoke the save() method. import QtLocation 5.0 Category { id: category plugin: myPlugin name: "New Category" visibility: Category.PrivateVisibility } ... category.save(); To remove a category ensure that the plugin and categoryId properties are set and call the remove() method. See also CategoryModel. Property DocumentationFor details on how to use this property to interface between C++ and QML see "Interfaces between C++ and QML Code". This property holds the identifier of the category. The categoryId is a string which uniquely identifies this category within the categories plugin. This property holds the image source associated with the category. To display the icon you can use the Image element. This property holds string based name of the category. This property holds the location based service to which the category belongs. This property holds the status of the category. It can be one of:
This property holds the visibility of the category. It can be one of:
Note that visibility does not affect how Places associated with the category are displayed in the user-interface of an application on the device. Instead, it defines the sharing semantics of the category. Method DocumentationReturns a string description of the error of the last operation. If the last operation completed successfully then the string is empty. |