内容表

上一话题

QPlaceDetailsReply

下一话题

QPlaceIcon

QPlaceEditorial

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

Inheritance diagram of PySide2.QtLocation.QPlaceEditorial

概要

函数

详细描述

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

class QPlaceEditorial

QPlaceEditorial(other)

param other

QPlaceContent

Constructs a new editorial object.

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

PySide2.QtLocation.QPlaceEditorial. language ( )
返回类型

unicode

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

另请参阅

setLanguage()

PySide2.QtLocation.QPlaceEditorial. setLanguage ( data )
参数

data – unicode

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

另请参阅

language()

PySide2.QtLocation.QPlaceEditorial. setText ( text )
参数

text – unicode

设置 text of the editorial.

另请参阅

text()

PySide2.QtLocation.QPlaceEditorial. setTitle ( data )
参数

data – unicode

设置 title of the editorial.

另请参阅

title()

PySide2.QtLocation.QPlaceEditorial. text ( )
返回类型

unicode

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()

PySide2.QtLocation.QPlaceEditorial. title ( )
返回类型

unicode

Returns the title of the editorial.

另请参阅

setTitle()