ReviewModelThe ReviewModel element provides access to reviews of a Place. More... Inherits QtObject This type was introduced in Qt Location 5.0. Properties
Detailed DescriptionThe ReviewModel is a read-only model used to fetch reviews about a Place. The model incrementally fetches. The number of reviews which are fetched at a time is specified by the batchSize property. The total number of reviews available can be accessed via the totalCount property. To use the ReviewModel we need a view and a delegate. In this snippet we see the setting up of a ListView with a ReviewModel model and a delegate. ListView { anchors.fill: parent model: place.reviewModel delegate: ReviewDelegate { } } The various roles listed below can be selectively displayed, in the Places (QML) Example the rating is used with the code in ReviewPage.qml to provide the format of the displayed data by using the roles from the passed data object. The model returns data for the following roles:
Property DocumentationThis property holds the batch size to use when fetching more reviews. This property holds the Place that the reviews are for. This property holds the total number of reviews for the place. |