QWebEngineGlobalSettings Namespace
QWebEngineGlobalSettings 네임스페이스에는 웹 엔진의 전역 설정이 저장됩니다. 더 보기...
헤더: | #include <QWebEngineGlobalSettings> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
이후: | Qt 6.6 |
클래스
(since 6.6) struct | DnsMode |
Types
enum class | SecureDnsMode { SystemOnly, SecureWithFallback, SecureOnly } |
함수
bool | setDnsMode(QWebEngineGlobalSettings::DnsMode dnsMode) |
상세 설명
QWebEngineGlobalSettings 네임스페이스는 웹 엔진의 전역 속성을 저장합니다.
setDnsMode()를 호출하여 DNS-over-HTTPS를 구성합니다.
QWebEngineGlobalSettings::setDnsMode()도 참조하세요 .
유형 문서
enum class QWebEngineGlobalSettings::SecureDnsMode
이 열거형은 DnsMode 구조에서 사용하는 DNS-over-HTTPS 모드를 설정합니다:
Constant | 값 | 설명 |
---|---|---|
QWebEngineGlobalSettings::SecureDnsMode::SystemOnly | 0 | 기본값입니다. 시스템 DNS 호스트 확인을 사용합니다. |
QWebEngineGlobalSettings::SecureDnsMode::SecureWithFallback | 1 | DoH(DNS-over-HTTPS)를 활성화합니다. DoH 서버는 DnsMode 구조에서 serverTemplates 을 통해 제공해야 합니다. 제공된 서버를 통해 호스트를 확인할 수 없는 경우 시스템 DNS 호스트 확인이 사용됩니다. |
QWebEngineGlobalSettings::SecureDnsMode::SecureOnly | 2 | DNS-over-HTTPS를 사용하도록 설정하고 이 방법으로만 호스트를 확인하도록 허용합니다. DoH 서버는 DnsMode 구조에서 serverTemplates 을 통해 제공해야 합니다. DNS-over-HTTPS 확인이 실패하면 대체 방법이 없으며 DNS 호스트 확인이 완전히 실패합니다. |
함수 문서
bool QWebEngineGlobalSettings::setDnsMode(QWebEngineGlobalSettings::DnsMode dnsMode)
DNS-over-HTTPS 호스트 확인을 위해 dnsMode 을 설정합니다.
이 함수는 DnsMode 구조의 serverTemplates 목록이 비어 있거나 SecureDnsMode::SecureOnly 또는 SecureDnsMode::SecureWithFallback 에 대해 구문 분석할 수 없는 URI 템플릿을 포함하는 경우 false
을 반환합니다. 그렇지 않으면 true
을 반환하여 DNS 모드 변경이 트리거됨을 의미합니다.
© 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.