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.