【发布时间】:2020-12-28 09:29:24
【问题描述】:
我在 Windows 上使用 Qt creator 4.11.1 和 Qt 5.14.1 和 MinGW 我必须从 QML 在 webview 中打开 url 我按照以下步骤操作:
在 pro 文件中添加了“QT += webkit” 在 qml 中包含“import QtWebKit 1.0” 在相同的 qml 中添加了以下代码 网络视图 { id: idWebview anchors.fill:父级 网址:“https://www.google.com/” }
它已成功构建,但是当我运行应用程序时,得到“module "QtWebKit" is not installed” 我试过“import QtWebView 1.0”而不是 QtWebKit,得到“module "QtWebView" is not installed”
我在谷歌上搜索过,但没有弄明白。
请帮我解决这个问题。
非常感谢您。
【问题讨论】:
-
所以也许它实际上并没有安装?您如何从 QtCreator 或作为独立应用程序运行该应用程序?
-
我从 QtCreator 运行它