QDBus Namespace
QDBus 네임스페이스에는 ` Qt D-Bus ` 모듈 전반에 걸쳐 사용되는 다양한 식별자들이 포함되어 있습니다. 더 보기...
| 헤더: | #include <qdbusconnection.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DBus) target_link_libraries(mytarget PRIVATE Qt6::DBus) |
| qmake: | QT += dbus |
유형
| enum | CallMode { NoBlock, Block, BlockWithGui, AutoDetect } |
유형 설명서
enum QDBus::CallMode
이 열거형은 함수 호출을 수행하는 다양한 방식을 설명합니다. 유효한 모드는 다음과 같습니다:
| 상수 | 값 | 설명 |
|---|---|---|
QDBus::NoBlock | 0 | 호출을 수행하지만 응답을 기다리지 않습니다(응답 내용은 무시됩니다). |
QDBus::Block | 1 | 응답을 기다리기 위해 이벤트 루프를 사용하지 않고, 대신 대기하는 동안 네트워크 작업으로 인해 실행이 차단됩니다. 즉, 함수가 반환될 때까지 사용자 인터페이스가 업데이트되지 않을 수 있습니다. |
QDBus::BlockWithGui | 2 | Qt 이벤트 루프를 사용하여 응답을 기다립니다. 이는 사용자 인터페이스가 계속 반응할 수 있게(입력 이벤트 처리) 하지만, 신호 전달이나 다른 D-Bus 메서드 호출과 같은 다른 이벤트가 발생할 수도 있음을 의미합니다. |
QDBus::AutoDetect | 3 | 호출된 함수에 응답이 있는지 자동으로 감지합니다. |
BlockWithGui를 사용할 때, 애플리케이션은 모든 함수에서 재진입(reentrancy)이 발생할 수 있도록 대비해야 합니다.
© 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.