ReviewModel QML Type
|import QtLocation 5.15
The 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.
The model returns data for the following roles:
|The date and time that the review was posted.
|The review's textual description of the place. It can be either rich (HTML based) text or plain text depending on the provider.
|The language that the review is written in.
|The rating that the reviewer gave to the place.
|The identifier of the review.
|The title of the review.
|The supplier of the review.
|The user who contributed the review.
|Attribution text which must be displayed when displaying the review.
batchSize : int
This property holds the batch size to use when fetching more reviews.
place : Place
This property holds the Place that the reviews are for.
totalCount : int
This property holds the total number of reviews for the place.
© 2024 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.