このページでは

QPlaceCategory Class

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

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

パブリック関数

QPlaceCategory()
QPlaceCategory(const QPlaceCategory &other)
QPlaceCategory(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 のコピーとなるカテゴリを構築します。

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

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

[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)

lhs がrhs と等しくない場合はtrueを返し、それ以外の場合はfalseを返します。

[noexcept] bool operator==(const QPlaceCategory &lhs, const QPlaceCategory &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.