Unsolved How to run Qt QWebView in C++?
-
Hi!
How to run Qt QWebView in C++?
In a profile written like that.
QT += core gui widgets webview
Created a widget and tried to change it to QWebView , but got an error
:-1: error: dependent 'qwebview_p.h' does not exist.
Although everything is included -
@mikeeeeee QWebView is outdated and should not be used anymore, use QtWebEngine instead.
-
I need a browser for Android, so I need a WebView
-
@jsulm You might be mixing QtWebKit's QWebView class with the QtWebView module which goal is to provide a native web component on platform that have one. On platform that do not, IRCC, QtWebEngine is used a backend.
@Mikeeeeee from the QtWebView module C++ documentation: The Qt WebView module provides functionality to initialize the backend for using the WebView QML type.
So if you want to use the WebView QML type in a C++ application, you'll likely have to use the QQuickWidget class.
-
I don't understand. WebView in C++ has a signal about the need to download files. How do I transfer this to QML?
-
You need to be more precise. What exactly do you mean by "WebView" in C++ ?
-
I want to run WebView on QWidgets
-
QQuickWidget comes to mind.
-
But how to do it?
-
How to do what ?
-
How to use WebView in C++ in QQuickWidget ?
-
Load the QML code in the QQuickWidget.
-
But me need c++ WebView or me neee signals from downloads