QPlaceCategory Class

QPlaceCategory クラスは、QPlace が関連付けられるカテゴリを表します。詳細...

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

パブリック関数

QPlaceCategory()
QPlaceCategory(const QPlaceCategory &other)
~QPlaceCategory()
QString categoryId() const
QPlaceIcon icon() const
bool isEmpty() const
QString name() const
void setCategoryId(const QString &identifier)
void setIcon(const QPlaceIcon &icon)
void setName(const QString &name)
void setVisibility(QLocation::Visibility visibility)
QLocation::Visibility visibility() const
QPlaceCategory &operator=(const QPlaceCategory &other)
bool operator!=(const QPlaceCategory &lhs, const QPlaceCategory &rhs)
bool operator==(const QPlaceCategory &lhs, const QPlaceCategory &rhs)

詳細説明

カテゴリーは、関連するカテゴリーに基づいて場所を検索するために使用される。利用可能なカテゴリのリスト/ツリーは、QPlaceManager から得ることができる。QPlaceSearchRequest::setCategories() 関数は、指定されたカテゴリを持つ場所に検索結果を制限するために使うことができる。

QGeoServiceProvider がサポートしていれば、カテゴリーを作成したり削除したりすることができる。この機能はQPlaceManager クラスで利用できる。

メンバ関数ドキュメント

QPlaceCategory::QPlaceCategory()

カテゴリーを構築する。

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

other のコピーであるカテゴリーを構築する。

[noexcept] QPlaceCategory::~QPlaceCategory()

カテゴリーを破壊する。

QString QPlaceCategory::categoryId() const

カテゴリの識別子を返す。カテゴリの識別子は、特定のQPlaceManager 内でこのカテゴリを一意に識別する文字列です。この識別子は、それを生成したQPlaceManager に対してのみ意味があり、 マネージャ間で転送することはできません。

setCategoryId()も参照してください

QPlaceIcon QPlaceCategory::icon() const

カテゴリに関連付けられたアイコンを返します。

setIcon()も参照してください

bool QPlaceCategory::isEmpty() const

場所カテゴリのすべてのフィールドが空かどうかを示すブール値を返します。

QString QPlaceCategory::name() const

カテゴリの名前を返します。

setName()も参照

void QPlaceCategory::setCategoryId(const QString &identifier)

カテゴリのidentifier を設定する。

categoryId()も参照

void QPlaceCategory::setIcon(const QPlaceIcon &icon)

カテゴリのicon を設定する。

icon()も参照

void QPlaceCategory::setName(const QString &name)

カテゴリのname を設定する。

name()も参照

void QPlaceCategory::setVisibility(QLocation::Visibility visibility)

カテゴリのvisibility を設定する。

visibility()も参照

QLocation::Visibility QPlaceCategory::visibility() const

カテゴリの可視性を返します。

setVisibility()も参照

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

other をこのカテゴリーに割り当て、このカテゴリーへの参照を返します。

関連する非会員

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

lhsrhs と等しくなければ真を返し、そうでなければ偽を返す。

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

lhsrhs と等しければ真を返し、そうでなければ偽を返す。

© 2025 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.