IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QPlaceReview Class

The QPlaceReview class represents a review of a place.

This class was introduced in Qt 5.6.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPlaceReview Class▲

  • Header: QPlaceReview

  • Since: Qt 5.6

  • qmake: QT += location

  • Inherits: QPlaceContent

  • Group: QPlaceReview is part of QtLocation-places, QtLocation-places-data

Detailed Description▲

Each QPlaceReview has a number of properties such as a title, text, date of submission and rating; in addition to those properties inherited from QPlaceContent.

Note: The Places API only supports reviews as 'retrieve-only' objects. Submitting reviews to a provider is not a supported use case.

See Also▲

Member Function Documentation▲

 

QPlaceReview::QPlaceReview()▲

Constructs a new review object.

QPlaceReview::QPlaceReview(const QPlaceContent &other)▲

Constructs a copy of other, otherwise constructs a default review object.

[virtual] QPlaceReview::~QPlaceReview()▲

Destroys the review.

QDateTime QPlaceReview::dateTime() const▲

Returns the date and time that the review was submitted.

See Also▲

See also setDateTime()

QString QPlaceReview::language() const▲

Returns the language of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.

See Also▲

See also setLanguage()

qreal QPlaceReview::rating() const▲

Returns this review's rating of the place.

See Also▲

See also setRating()

QString QPlaceReview::reviewId() const▲

Returns the review's identifier.

See Also▲

See also setReviewId()

void QPlaceReview::setDateTime(const QDateTime &dateTime)▲

Sets the date and time that the review was submitted to dateTime.

See Also▲

See also dateTime()

void QPlaceReview::setLanguage(const QString &language)▲

Sets the language of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.

See Also▲

See also language()

void QPlaceReview::setRating(qreal rating)▲

Sets the review's rating of the place.

See Also▲

See also rating()

void QPlaceReview::setReviewId(const QString &identifier)▲

Sets the identifier of the review.

See Also▲

See also reviewId()

void QPlaceReview::setText(const QString &text)▲

Sets text of the review.

See Also▲

See also text()

void QPlaceReview::setTitle(const QString &title)▲

Sets the title of the review.

See Also▲

See also title()

QString QPlaceReview::text() const▲

Returns a textual description of the place.

Depending on the provider the text could be rich (HTML based) or plain text.

See Also▲

See also setText()

QString QPlaceReview::title() const▲

Returns the title of the review.

See Also▲

See also setTitle()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+