QPlaceEditorial Class

The QPlaceEditorial class represents a publisher's article describing a place. 更多...

头: #include <QPlaceEditorial>
qmake: QT += location
Since: Qt 5.6
继承: QPlaceContent

该类在 Qt 5.6 引入。

公共函数

QPlaceEditorial (const QPlaceContent & other )
QPlaceEditorial ()
virtual ~QPlaceEditorial ()
QString 语言 () const
void setLanguage (const QString & 语言 )
void setText (const QString & text )
void setTitle (const QString & title )
QString text () const
QString title () const

详细描述

Each QPlaceEditorial has a title, text and language; in addition to those properties inherited from QPlaceContent .

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

另请参阅 QPlaceContent .

成员函数文档编制

QPlaceEditorial:: QPlaceEditorial (const QPlaceContent & other )

构造副本为 other if possible, otherwise constructs a default editorial object.

QPlaceEditorial:: QPlaceEditorial ()

Constructs a new editorial object.

[虚拟] QPlaceEditorial:: ~QPlaceEditorial ()

析构函数。

QString QPlaceEditorial:: 语言 () const

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

另请参阅 setLanguage ().

void QPlaceEditorial:: setLanguage (const QString & 语言 )

设置 语言 of the editorial. Typically this would be a language code in the 2 letter ISO 639-1 format.

另请参阅 语言 ().

void QPlaceEditorial:: setText (const QString & text )

设置 text of the editorial.

另请参阅 text ().

void QPlaceEditorial:: setTitle (const QString & title )

设置 title of the editorial.

另请参阅 title ().

QString QPlaceEditorial:: text () const

Returns a textual description of the place.

Depending upon the provider, the editorial text could be either rich(HTML based) text or plain text.

另请参阅 setText ().

QString QPlaceEditorial:: title () const

Returns the title of the editorial.

另请参阅 setTitle ().