内容表

上一话题

QPlaceCategory

下一话题

QPlaceContent

QPlaceContactDetail

QPlaceContactDetail class represents a contact detail such as a phone number or website url. 更多

Inheritance diagram of PySide2.QtLocation.QPlaceContactDetail

概要

函数

详细描述

The detail consists of a label and value. The label is a localized string that can be presented to the end user that describes that detail value which is the actual phone number, email address and so on.

Contact Types

QPlaceContactDetail class defines some constant strings which characterize standard contact types .

  • QPlaceContactDetail::Phone

  • QPlaceContactDetail::Email

  • QPlaceContactDetail::Website

  • QPlaceContactDetail::Fax

These types are used to access and modify contact details in QPlace via:

contact type is intended to be a string type so that providers are able to introduce new contact types if necessary.

class QPlaceContactDetail

QPlaceContactDetail(other)

param other

QPlaceContactDetail

Constructs a contact detail.

Creates a copy of other .

PySide2.QtLocation.QPlaceContactDetail. Phone
PySide2.QtLocation.QPlaceContactDetail. Email
PySide2.QtLocation.QPlaceContactDetail. Website
PySide2.QtLocation.QPlaceContactDetail. Fax
PySide2.QtLocation.QPlaceContactDetail. clear ( )

Clears the contact detail.

PySide2.QtLocation.QPlaceContactDetail. label ( )
返回类型

unicode

Returns a label describing the contact detail.

The label can potentially be localized. The language is dependent on the entity that sets it, typically this is the manager from which the places are sourced. The locales() field defines what language is used.

另请参阅

setLabel()

PySide2.QtLocation.QPlaceContactDetail. __ne__ ( other )
参数

other QPlaceContactDetail

返回类型

bool

返回 true 若 other is not equal to this contact detail, otherwise returns false.

PySide2.QtLocation.QPlaceContactDetail. __eq__ ( other )
参数

other QPlaceContactDetail

返回类型

bool

返回 true 若 other is equal to this contact detail, otherwise returns false.

PySide2.QtLocation.QPlaceContactDetail. setLabel ( label )
参数

label – unicode

设置 label of the contact detail.

另请参阅

label()

PySide2.QtLocation.QPlaceContactDetail. setValue ( value )
参数

value – unicode

设置 value of this contact detail.

另请参阅

value()

PySide2.QtLocation.QPlaceContactDetail. value ( )
返回类型

unicode

Returns the value of the contact detail.

另请参阅

setValue()