簡體   English   中英

Webview 在 Qt Creator 中無法使用 Windows 上的 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM