PySide6.QtLocation.QPlaceContactDetail¶
- class QPlaceContactDetail¶
The
QPlaceContactDetail
class represents a contact detail such as a phone number or website url. More…Synopsis¶
Properties¶
Methods¶
def
__init__()
def
clear()
def
label()
def
__ne__()
def
__eq__()
def
setLabel()
def
setValue()
def
swap()
def
value()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
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¶
The
QPlaceContactDetail
class defines some constant strings which characterize standard contact types.These types are used to access and modify contact details in
QPlace
via:The contact type is intended to be a string type so that providers are able to introduce new contact types if necessary.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property labelᅟ: str¶
This property holds 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.- Access functions:
- property valueᅟ: str¶
This property holds the value of the contact detail..
- Access functions:
- PySide6.QtLocation.QPlaceContactDetail.Phone¶
- PySide6.QtLocation.QPlaceContactDetail.Email¶
- PySide6.QtLocation.QPlaceContactDetail.Website¶
- PySide6.QtLocation.QPlaceContactDetail.Fax¶
- __init__()¶
Constructs a contact detail.
- __init__(other)
- Parameters:
other –
QPlaceContactDetail
Creates a copy of
other
.- clear()¶
Clears the contact detail.
- label()¶
- Return type:
str
See also
Getter of property
labelᅟ
.- __ne__(rhs)¶
- Parameters:
rhs –
QPlaceContactDetail
- Return type:
bool
Returns true if the contact detail
lhs
is not equal torhs
, otherwise returns false.- __eq__(rhs)¶
- Parameters:
rhs –
QPlaceContactDetail
- Return type:
bool
Returns true if the contact detail
lhs
is equal torhs
, otherwise returns false.Setter of property
labelᅟ
.Setter of property
valueᅟ
.- swap(other)¶
- Parameters:
other –
QPlaceContactDetail
- value()¶
- Return type:
str
See also
Getter of property
valueᅟ
.