Qt 6 No WebView plug-in found!
-
Hello,
I'm trying to use WebView in a Qt Quick app on Qt 6.3. The app compiles, however I get a "No WebView plug-in found!" error in the console and WebView object is blank.When installing Qt 6.3, in the maintainance tool, I've selected:
- MSVC 2019 64-bit
- Qt WebEngine
- QtWebView
- Qt Debug Information Files
I have tried calling
QtWebView::initialize();
before and after creatingQGuiApplication
.I have
Qt += webview
in my pro file. I've also tried addingQT_DEBUG_PLUGINS=1
as recommended in No WebView plug-in found! , however that doesn't fix the error nor does that provide any additional info in the console.The WebView works fine on Qt 5.14.2 and Qt 5.15.2. I can't get it to work on Qt 6.2.4 or on Qt 6.3.
I've also checked Qt/6.3.0/msvc2019_64/lib folder, and
Qt6WebView
libs seems to be present there.After checking Qt WebView documentation I assume that WebView is supported on Qt 6. Any ideas on what could be wrong?
-
You might need to install Qt Positioning too: https://bugreports.qt.io/browse/QTBUG-102997
-
@JKSH Installing
Qt Positioning
packet in Maintainance Tool seems to fix the issue :) Thank you!edit: Just to add to your answer: it seems that you also need to install
Qt WebChannel
packet for WebView to work. So in total you need to install:- Qt WebEngine
- Qt Positioning
- Qt WebChannel
- Qt WebView
-
@Augustas said in Qt 6 No WebView plug-in found!:
edit: Just to add to your answer: it seems that you also need to install
Qt WebChannel
packet for WebView to work. So in total you need to install:- Qt WebEngine
- Qt Positioning
- Qt WebChannel
- Qt WebView
Good catch. Thanks for letting us know!
(I didn't notice it before because I usually install everything, for convenience)