<qtwebenginecoreglobal.h> - Global Qt WebEngine Core Declarations

Qt WebEngine Core 模块的辅助函数。更多

Header: #include <qtwebenginecoreglobal.h>

函数

(since 6.3) const char *qWebEngineChromiumSecurityPatchVersion()
(since 6.2) const char *qWebEngineChromiumVersion()
(since 6.6) QString qWebEngineGetDomainAndRegistry(const QUrl &url)
(since 6.2) const char *qWebEngineVersion()

详细说明

函数文档

[noexcept, since 6.3] const char *qWebEngineChromiumSecurityPatchVersion()

返回最后一个 Chromium 版本安全补丁的版本号。

此函数在 Qt 6.3 中引入。

[noexcept, since 6.2] const char *qWebEngineChromiumVersion()

以字符串形式返回Qt WebEngine 在运行时使用的 Chromium 版本号(例如,"83.0.4103.122")。

此函数在 Qt 6.2 中引入。

[since 6.6] QString qWebEngineGetDomainAndRegistry(const QUrl &url)

url 返回主机的域名,即有效顶级域 (eTLD) 及其下面的第一个域。

该函数支持国际化域名 (IDN)。在这种情况下,它会返回以 Punycode 编码的域名。

如果主机不是域名,则返回空字符串。

此函数在 Qt 6.6 中引入。

[noexcept, since 6.2] const char *qWebEngineVersion()

以字符串形式返回运行时Qt WebEngine 的版本号(例如,"6.2.0")。该版本可能与应用程序编译时的版本不同,也可能与 Qt 版本不同。

此函数在 Qt 6.2 中引入。

© 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.