QDBusObjectPath Class
QDBusObjectPath 클래스를 사용하면 프로그래머는 D-Bus 유형 시스템에서 제공하는 OBJECT_PATH 유형을 식별할 수 있습니다. 더 보기...
| 헤더: | #include <QDBusObjectPath> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DBus) target_link_libraries(mytarget PRIVATE Qt6::DBus) |
| qmake: | QT += dbus |
공개 함수
| QDBusObjectPath() | |
| QDBusObjectPath(QLatin1StringView path) | |
| QDBusObjectPath(const QString &path) | |
| QDBusObjectPath(const char *path) | |
| QString | path() const |
| void | setPath(const QString &path) |
| void | swap(QDBusObjectPath &other) |
| operator QVariant() const |
관련 비멤버
(since 6.8) QDebug | operator<<(QDebug dbg, const QDBusObjectPath &path) |
Qt D-Bus 의 타입 시스템도 참조하십시오 .
멤버 함수 설명
[noexcept] QDBusObjectPath::QDBusObjectPath()
새로운 객체 경로를 생성합니다.
[explicit] QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)
path 에서 해석된 Latin-1 문자열을 기반으로 새로운 객체 경로를 생성합니다.
[explicit] QDBusObjectPath::QDBusObjectPath(const QString &path)
주어진 ` path`를 기반으로 새로운 객체 경로를 생성합니다.
[explicit] QDBusObjectPath::QDBusObjectPath(const char *path)
주어진 path 로부터 새로운 객체 경로를 생성합니다.
setPath()도 참조하십시오 .
QString QDBusObjectPath::path() const
이 객체 경로를 반환합니다.
setPath()도 참조하십시오 .
void QDBusObjectPath::setPath(const QString &path)
지정된 path 의 값을 이 객체 경로에 할당합니다.
path()도 참조하십시오 .
[noexcept] void QDBusObjectPath::swap(QDBusObjectPath &other)
이 객체의 경로를 other 로 바꿉니다. 이 작업은 매우 빠르며 절대 실패하지 않습니다.
QDBusObjectPath::operator QVariant() const
QVariant 으로의 암시적 형변환. 이 객체를 인수로 전달하여 QVariant::fromValue()를 호출하는 것과 동일합니다.
관련 비멤버 메서드
[since 6.8] QDebug operator<<(QDebug dbg, const QDBusObjectPath &path)
path 의 내용을 dbg 에 기록합니다.
이 함수는 Qt 6.8에서 도입되었습니다.
© 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.