QPlaceContactDetailclass represents a contact detail such as a phone number or website url. 更多 …
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.
QPlaceContactDetailclass 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
QPlacevia:contact type is intended to be a string type so that providers are able to introduce new contact types if necessary.
QPlaceContactDetail
¶
QPlaceContactDetail(other)
- param other
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.
另请参阅
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.
另请参阅
PySide2.QtLocation.QPlaceContactDetail.
setValue
(
value
)
¶
value – unicode
设置
value
of this contact detail.
另请参阅
PySide2.QtLocation.QPlaceContactDetail.
value
(
)
¶
unicode
Returns the value of the contact detail.
另请参阅