![](/img/trans.png)
[英]PRECOMPILED HEADERS not working in debug build with Qt Creator / qmake / MinGw
[英]Webview is not working in Qt Creator with mingw on Windows
I am using Qt creator 4.11.1 with Qt 5.14.1 and MinGW on Windows I have to open url in webview from QML I followed the below steps:
Added "QT += webkit" in pro file Included "import QtWebKit 1.0" in qml Added below code in same qml WebView { id: idWebview anchors.fill: parent url: "https://www.google.com/" }
它构建成功但是当我运行应用程序得到“模块”QtWebKit“没有安装”我尝试“导入QtWebView 1.0”而不是QtWebKit,得到“模块“QtWebView”没有安装“
我已经用谷歌搜索了这个,但没有弄清楚。
请帮我解决这个问题。
非常感谢你。
QWebView 仅适用于 osx 的 windows 和 clang 上的 msvc 编译器。 mingw 目前还不支持。
如果您的 QT 版本超过 4.0,请在项目文件中使用 webkitwidget 而不是 webkit。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.