このページでは

QPlaceContactDetail Class

QPlaceContactDetail クラスは、電話番号やウェブサイトの URL などの連絡先詳細を表します。詳細...

Header: #include <QPlaceContactDetail>
qmake: QT += location

プロパティ

パブリック関数

QPlaceContactDetail()
QPlaceContactDetail(const QPlaceContactDetail &other)
QPlaceContactDetail(QPlaceContactDetail &&other)
~QPlaceContactDetail()
void clear()
QString label() const
void setLabel(const QString &label)
void setValue(const QString &value)
QString value() const
QPlaceContactDetail &operator=(const QPlaceContactDetail &other)

静的パブリックメンバー

const QString Email
const QString Fax
const QString Phone
const QString Website
bool operator!=(const QPlaceContactDetail &lhs, const QPlaceContactDetail &rhs)
bool operator==(const QPlaceContactDetail &lhs, const QPlaceContactDetail &rhs)

詳細な説明

詳細情報は、ラベルと値で構成されます。ラベルは、エンドユーザーに表示されるローカライズされた文字列であり、実際の電話番号やメールアドレスなどの詳細値を説明します。

連絡先の種類

QPlaceContactDetail クラスは、標準的な連絡先タイプを特徴づけるいくつかの定数文字列を定義しています。

これらのタイプは、QPlace において、以下の方法で連絡先の詳細にアクセスしたり変更したりするために使用されます:

連絡先タイプは文字列型として設計されており、これによりプロバイダーは必要に応じて新しい連絡先タイプを導入できるようになっています。

プロパティのドキュメント

label : QString

このプロパティには、連絡先の詳細を説明するラベルが格納されます。

このラベルはローカライズされる可能性があります。使用される言語は、ラベルを設定するエンティティによって異なります。通常、これは場所の情報源となる管理者です。QPlaceManager::locales() フィールドは、使用される言語を定義します。

アクセス関数:

QString label() const
void setLabel(const QString &label)

value : QString

このプロパティには、連絡先詳細の値が格納されます。

アクセス関数:

QString value() const
void setValue(const QString &value)

メンバ関数のドキュメント

QPlaceContactDetail::QPlaceContactDetail()

連絡先の詳細を作成します。

[noexcept] QPlaceContactDetail::QPlaceContactDetail(const QPlaceContactDetail &other)

other のコピーを作成します。

[constexpr noexcept default] QPlaceContactDetail::QPlaceContactDetail(QPlaceContactDetail &&other)

QPlaceContactDetail のインスタンスをMoveコンストラクタで生成します。

[noexcept] QPlaceContactDetail::~QPlaceContactDetail()

連絡先情報を削除します。

void QPlaceContactDetail::clear()

連絡先の詳細を消去します。

[noexcept] QPlaceContactDetail &QPlaceContactDetail::operator=(const QPlaceContactDetail &other)

この連絡先詳細にother を割り当て、この連絡先詳細への参照を返します。

メンバー変数のドキュメント

const QString QPlaceContactDetail::Email

メールの連絡先情報を指定するための定数。

const QString QPlaceContactDetail::Fax

FAXの連絡先情報を指定するために使用される定数。

const QString QPlaceContactDetail::Phone

電話の連絡先情報を指定するための定数

const QString QPlaceContactDetail::Website

ウェブサイトの連絡先情報を指定するために使用される定数。

関連する非会員

[noexcept] bool operator!=(const QPlaceContactDetail &lhs, const QPlaceContactDetail &rhs)

連絡先詳細「lhs 」が「rhs 」と等しくない場合はtrueを返し、それ以外の場合はfalseを返します。

[noexcept] bool operator==(const QPlaceContactDetail &lhs, const QPlaceContactDetail &rhs)

連絡先の詳細「lhs 」が「rhs 」と一致する場合、trueを返し、一致しない場合はfalseを返します。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.