PySide6.QtWebEngineCore.QWebEngineGlobalSettings¶
- class QWebEngineGlobalSettings¶
The QWebEngineGlobalSettings namespace holds global settings of the web engine. More_…
Synopsis¶
Static functions¶
def
setDnsMode()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
The QWebEngineGlobalSettings namespace holds global properties of the web engine.
Invoke
setDnsMode()to configure DNS-over-HTTPS.See also
- class SecureDnsMode¶
This enum sets the DNS-over-HTTPS mode used by the
DnsModestructure:Constant
Description
QWebEngineGlobalSettings.SecureDnsMode.SecureDnsMode.SystemOnly
This is the default. Use the system DNS host resolution.
QWebEngineGlobalSettings.SecureDnsMode.SecureDnsMode.SecureWithFallback
Enable DNS-over-HTTPS (DoH). DoH servers have to be provided through serverTemplates in the
DnsModestructure. If a host cannot be resolved via the provided servers, the system DNS host resolution is used.QWebEngineGlobalSettings.SecureDnsMode.SecureDnsMode.SecureOnly
Enable DNS-over-HTTPS and only allow hosts to be resolved this way. DoH servers have to be provided through serverTemplates in the
DnsModestructure. If the DNS-over-HTTPS resolution fails, there is no fallback and the DNS host resolution fails completely.
Sets
dnsModefor DNS-over-HTTPS host resolution.This function returns
falseif the serverTemplates list in theDnsModestructure is empty or contains URI templates that cannot be parsed forSecureOnlyorSecureWithFallback. Otherwise, it returnstruemeaning that the DNS mode change is triggered.- class DnsMode¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
- PySide6.QtWebEngineCore.QWebEngineGlobalSettings.DnsMode.secureMode¶
- PySide6.QtWebEngineCore.QWebEngineGlobalSettings.DnsMode.serverTemplates¶