QPlaceAttribute Class

QPlaceAttribute 클래스는 장소에 대한 일반 속성 정보를 나타냅니다. 더 보기...

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

속성

공용 함수

QPlaceAttribute()
QPlaceAttribute(const QPlaceAttribute &other)
~QPlaceAttribute()
bool isEmpty() const
QString label() const
void setLabel(const QString &label)
void setText(const QString &text)
QString text() const
QPlaceAttribute &operator=(const QPlaceAttribute &other)

정적 공개 회원

const QString OpeningHours
const QString Payment
const QString Provider
bool operator!=(const QPlaceAttribute &lhs, const QPlaceAttribute &rhs)
bool operator==(const QPlaceAttribute &lhs, const QPlaceAttribute &rhs)

상세 설명

QPlaceAttribute 인스턴스는 QPlace 클래스를 통해 노출되지 않는 장소에 대한 추가 정보를 저장합니다. QPlaceAttribute는 속성을 설명하는 지역화된 레이블과 속성 값을 나타내는 서식 있는 텍스트 문자열을 캡슐화합니다. 일반적으로 둘 다 최종 사용자에게 있는 그대로 표시되도록 되어 있습니다.

일부 플러그인은 속성을 전혀 지원하지 않을 수도 있고, 특정 세트만 지원할 수도 있으며, 시간이 지나면서 동적으로 변경되는 속성 세트를 지원하거나 클라이언트 애플리케이션에서 속성을 임의로 정의할 수 있도록 허용할 수도 있습니다. 예를 들어 한 곳에서는 영업 시간이 있는 반면 다른 곳에서는 영업 시간이 없을 수 있는 등 장소별로 속성이 다를 수도 있습니다. 자세한 내용은 플러그인 참조를 참조하세요.

속성 유형

QPlaceAttribute 클래스는 표준 속성 유형을 특징짓는 몇 가지 상수 문자열을 정의합니다.

x_id_<제공자> 형식의 속성 유형 클래스(예: x_id_here)가 있습니다. 이 속성 클래스는 지정된 제공자의 관점에서 장소의 대체 식별자 집합입니다.

위의 유형은 QPlace 을 통해 속성에 액세스하고 수정하는 데 사용됩니다:

속성 유형은 공급자가 필요에 따라 새 속성을 도입할 수 있도록 문자열 유형입니다. 충돌을 피하기 위해 사용자 정의 속성 유형 앞에 항상 한정자를 붙여야 합니다.

사용자 읽기 가능 및 비사용자 읽기 가능 속성

일부 속성은 최종 사용자가 읽을 수 없도록 되어 있을 수 있으며, 이러한 속성의 레이블 필드는 이 사실을 나타내기 위해 비워져 있습니다.

속성 문서

label : QString

이 속성에는 속성을 설명하는 현지화된 레이블이 있습니다.

액세스 함수:

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

text : QString

이 속성에는 속성 값을 나타내는 리치 텍스트 조각이 들어 있습니다.

액세스 함수:

QString text() const
void setText(const QString &text)

멤버 함수 문서

QPlaceAttribute::QPlaceAttribute()

어트리뷰트를 구성합니다.

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

other 의 복사본을 만듭니다.

[noexcept] QPlaceAttribute::~QPlaceAttribute()

속성을 파괴합니다.

bool QPlaceAttribute::isEmpty() const

장소 속성의 모든 필드가 비어 있는지 여부를 나타내는 부울을 반환합니다.

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

이 속성에 other 을 할당하고 이 속성에 대한 참조를 반환합니다.

멤버 변수 문서

const QString QPlaceAttribute::OpeningHours

영업 시간을 지정합니다.

const QString QPlaceAttribute::Payment

결제 방법을 정의하는 속성을 지정하는 상수입니다.

const QString QPlaceAttribute::Provider

장소의 출처를 정의하는 속성을 지정하는 상수입니다.

관련 비회원

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

lhsrhs 과 같지 않으면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.

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