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 | language () 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 .
構造副本為 other if possible, otherwise constructs a default editorial object.
Constructs a new editorial object.
[虛擬]
QPlaceEditorial::
~QPlaceEditorial
()
析構函數。
Returns the language of the editorial. Typically this would be a language code in the 2 letter ISO 639-1 format.
另請參閱 setLanguage ().
設置 語言 of the editorial. Typically this would be a language code in the 2 letter ISO 639-1 format.
另請參閱 language ().
設置 text of the editorial.
另請參閱 text ().
設置 title of the editorial.
另請參閱 title ().
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 ().
Returns the title of the editorial.
另請參閱 setTitle ().