我的操作系统是win10,QT的版本是Qt5.7 mingw53_32,目标操作系统是win10。当我使用qmlscene来导出qml文件时,它发生了一些错误:
qrc:/.qml:3模块"QtWebView“未安装
我的qml文件如下。
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtWebView 1.1
ScrollView {
width: 1280
height: 720
WebView {
id: webview
url: "http://www.baidu.com"
anchors.fill: parent
onNavigationRequested: {
// detect URL scheme prefix, most likely an external link
var schemaRE = /^\w+:/;
if (schemaRE.test(request.url)) {
request.action = WebView.AcceptRequest;
} else {
request.action = WebView.IgnoreRequest;
// delegate request.url here
}
}
}
}我安装了一些模块。

发布于 2017-02-25 09:44:29
QtWebView是一个模块,它围绕特定于平台的web视图为限制性平台(如iOS )提供包装组件,这类平台不允许应用程序提供自己的HTML。
在桌面Windows等功能齐全的平台上,您可以使用功能更强的web呈现器集成,例如由QtWebEngine 模块或QtWebKit 模块提供的集成
发布于 2019-11-28 13:01:06
当我发布一个使用QtWebView的应用程序时,我在Ubuntu18.04和QT5.12上得到了同样的警告。
我的案子的解决办法是运行:
sudo apt-get install libqt5webview5
sudo apt-get install qml-module-qtwebview
https://stackoverflow.com/questions/42450333
复制相似问题