That's a Known Issue, qt official will fix it in qt 5.7rc version.
https://bugreports.qt.io/browse/QTBUG-52517?filter=17619
Unsolved Qt 5.7beta -- where is QWebEngine?
Unsolved QWebEngineView behaves odd when used inside a QDockWidget
We have a central widget which does some heavy rendering using DirectX. I have tried to replace WebKit with the new WebEngine when I hit the following problem. There is a QDockWidget with a QWebEngineView inside that simply loads some web pages. As long as it remains undocked, everything works as expected. After docking it becomes really sluggish. Highlighting during MouseOver, inputting text, clicking links, everything gets slow. It seems that the QWebEngineView or the QDockWidget are not getting updated correctly. When I stop the rendering, or when I add a QTimer to the DockWidget which calls update() frequently, everything works as expected. Is there any way or place where I could start look what the actual problem is?
Unsolved Library not loaded: @rpath/QtWebEngineCore.framework
When I try to run the examples quickNanoBrowser or Minibrowser (or any webwengine example) from OS X I get an image not found error:
Library not loaded: @rpath/QtWebEngineCore.framework/Versions/5/QtWebEngineCore
Referenced from: /Users/USER/*/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess
Reason: image not found
Can someone help? DO I need to do some extra steps to get the app to deploy properly? I can only get it to run if I build and run the app from within the Qt Creator IDE
CSS 3D transform: QtWebEngine (Qt 5.5) vs CEF3
btw, Qt5.6 and same edges, will see if it improved in 5.7...
Unsolved How work with QWebEngineUrlRequestJob?
The reason of the crash is not obvious, because Qt documentation is not clear on the details how QWebEngineUrlSchemeHandler should be implemented.
Your program crashes because QWebEngineUrlRequestJob::reply() uses the buffer parameter later, out of the caller's scope, probably from a different thread. The local variable QByteArray arr which you declared on the stack (and used as backing storage for the buffer) will be out of scope by then and QWebEngine will be accessing an invalid pointer.
Another thing is, reply() does not take ownership of the passed buffer object and never deletes it. This introduces a memory leak. You cannot simply delete it right after calling reply() for the same reason as above. To ensure the buffer object is deleted when no longer needed, connect the request's destroyed() signal to the buffer's deleteLater() slot.
Here is a complete working and leak-free example:
void CustomUrlSchemeHandler::requestStarted(QWebEngineUrlRequestJob *request) { QBuffer *buffer = new QBuffer; connect(request, SIGNAL(destroyed()), buffer, SLOT(deleteLater())); buffer->open(QIODevice::WriteOnly); buffer->write("<html><body>Hello world!</body></html>"); buffer->close(); request->reply("text/html", buffer); }Note: You don't need to use a QByteArray at all. The default constructor for QBuffer allocates its own storage.
Unsolved Fail to build WEBENGINE
Hi all,
Can you help me?
I fail to built QtWebEngine on Windows? I oprate with windows7 and vs2013.
I'm a beginner For qt.And i need to using WebEngine in my project.
I installed ActivePerl 5.24 ,Ruby22-x64,Python35,MS SDK8,MS SDK7,PuTTY-0.67 suit ,openSSL ,ICU from http://download.qt.io/development_releases/prebuilt/icu/prebuilt/msvc2013.
I got QT src by Git :
git clone git://code.qt.io/qt/qt5.git qt5
cd qt5
git checkout dev
perl init-repository —module-subset=qtbase,qtxmlpatterns,qtdeclarative,qtquickcontrols,qtwinextras,qtwebengine
and Setting up dependencies manually
This is my Full build.cmd:
@echo off
set _QTDRIVE=h:
rem set _QTROOT=c:\Users\Administrator.USER-20160413IK\qt5
set _QTROOT=H:\qt\qt5.6.1
set _SDK8=C:\Progra~2\Windows Kits\8.0
set _Vss2013=D:\oracle\vss2013
set pathPrefix=f:\qt\WebEngine
SET PATH=C:\Windows;C:\Windows\system32;
set PATH=%_Vss2013%\Common7\IDE;%PATH%
set INCLUDE=%_SDK8%\Include;%_Vss2013%;%_Vss2013%\VC\include;%INCLUDE%
set PATH=%_Vss2013%;%_Vss2013%\VC\bin;%PATH%
set LIB=%_Vss2013%\VC\lib;%_SDK8%\Lib\x64;%LIB%
%_QTDRIVE%
cd %_QTROOT%
set GYP_DEFINES=windows_sdk_path="%_SDK8%\bin"
set GYP_MSVS_VERSION=2013 #2012e or 2013e. For full version, remove the e
set GYP_MSVS_OVERRIDE_PATH=%_Vss2013%
set GYP_GENERATORS=ninja
set GYP_PARALLEL=1
set WDK_DIR=%_SDK8%
set WindowsSDKDir=%_SDK8%
set PATH=%pathPrefix%\bin;%_Vss2013%\VC\redist\Debug_NonRedist\x64\Microsoft.VC120.DebugCRT;%_Vss2013%\VC\redist\Debug_NonRedist\x86\Microsoft.VC120.DebugCRT;%_Vss2013%\VC\redist\x64\Microsoft.VC120.CRT;%_Vss2013%\VC\redist\x86\Microsoft.VC120.CRT;%PATH%
CALL "%_Vss2013%\VC\vcvarsall.bat" x86
SET PATH=%_SDK8%\Bin;%PATH%
SET INCLUDE=%_SDK8%\Include;%INCLUDE%
SET LIB=%_SDK8%\Lib;%LIB%
SET CL=/D_USING_V120_SDK71_;%CL%
SET PATH=C:\Ruby22-x64\bin;C:\Perl64\bin;C:\Program Files\Python35;C:\Program Files (x86)\PuTTY\;%PATH%
SET _ROOT=%_QTROOT%
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
SET QMAKESPEC=win32-msvc2013
SET _ROOT=
REM ICU
SET INCLUDE=H:\qt\icu53_1\include;%INCLUDE%
SET LIB=H:\qt\icu53_1\lib;%LIB%
SET PATH=H:\qt\icu53_1\lib;H:\qt\icu53_1\BIN;%PATH%
rem openGl
SET PATH=H:\qt\opengl32sw-32-mesa;%PATH%
rem openSSL
SET INCLUDE=H:\qt\openssl_x86\include;%INCLUDE%
SET LIB=H:\qt\openssl_x86\lib;%LIB%
SET PATH=H:\qt\openssl_x86\lib;H:\qt\openssl_x86\BIN;%PATH%
REM DirectX SDK
set PATH=%_SDK8%\Redist\D3D\x86;%PATH%
set OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto'
SET INCLUDE=%INCLUDE%;%_sdk8%\..\8.1\Include\um;%_sdk8%\..\8.1\Include\shared;%_sdk8%\Include
call configure -icu -openssl-linked -nomake tests -nomake examples -opensource -confirm-license -debug -opengl es2 -angle -platform %QMAKESPEC% -prefix %pathPrefix%
rem > h:\config_%CurDateTime%.log
nmake > h:\nmake_%CurDateTime%.log
nmake install
It is success for compilation and installation.But in I can't find the WEBENGINE related lib in installed directory.
Message about webengine in my logfile is
cd qtwebengine\ && ( if not exist Makefile H:\qt\qt5.6.1\qtbase\bin\qmake H:\qt\qt5.6.1\qtwebengine\qtwebengine.pro -o Makefile ) && D:\oracle\vss2013\VC\BIN\nmake.exe -f Makefile
Info: creating cache file H:\qt\qt5.6.1\qtwebengine\.qmake.cache
cd qtwebview\ && ( if not exist Makefile H:\qt\qt5.6.1\qtbase\bin\qmake H:\qt\qt5.6.1\qtwebview\qtwebview.pro -o Makefile ) && D:\oracle\vss2013\VC\BIN\nmake.exe -f Makefile
Info: creating cache file H:\qt\qt5.6.1\qtwebview\.qmake.cache
"Some of the required modules (android|ios|winrt|osx_webview_experimental|qtHaveModule(webengine)) are not available."
"Skipped."
Unsolved There is no way to disable back/forward navigation on Qt Quick WebEngineView
I writing hibrid desktop application where I have a web view to show some backend webpages, and i need to disable navigation with "Backspace" or "Shift+Backspace" like in browser, when we can move back and forward through history. This thing is realy blocks me.
There is a bug, i report QTBUG-53824 with some more detail and example, but I need some solution faster. Thanks!
Unsolved WebKit and WebEngine not found in Qt 5.7
Thank for your answer.
I have never used Visual Studio. I prefer to compile QtWebkit from source. But I don't know how to do that ? Can you tell what to do ?
Else, if I want to use Visual Studio, I have to compile the project inside ?
Unsolved Error while building qtwebengine module from Qt 5.7.0
Hello everyone.
I tried to compile Qt 5.7.0 from source (link) with MSVS 2015 in both x86 and x64, but the process failed during the compilation of qtwebengine module.
Errors were the following:
[12804/12810] CXX obj\src\core\QtWebEngineCore.web_engine_settings.obj
FAILED: ninja -t msvc -e environment.x64 -- cl.exe /nologo /showIncludes /FC @obj\src\core\QtWebEngineCore.web_engine_settings.obj.rsp /c %path_to_qt%\qt-everywhere-opensource-src-5.7.0\qtwebengine\src\core\web_engine_settings.cpp /Foobj\src\core\QtWebEngineCore.web_engine_settings.obj /Fdobj\src\core\QtWebEngineCore.cc.pdb
%path_to_qt%\qt-everywhere-opensource-src-5.7.0\qtwebengine\src\core\web_engine_settings.cpp(350): fatal error C1083: Cannot open include file: 'web_engine_settings.moc': No such file or directory
[12804/12810] CXX obj\src\core\QtWebEngineCore.location_provider_qt.obj
FAILED: ninja -t msvc -e environment.x64 -- cl.exe /nologo /showIncludes /FC @obj\src\core\QtWebEngineCore.location_provider_qt.obj.rsp /c %path_to_qt%\qt-everywhere-opensource-src-5.7.0\qtwebengine\src\core\location_provider_qt.cpp /Foobj\src\core\QtWebEngineCore.location_provider_qt.obj /Fdobj\src\core\QtWebEngineCore.cc.pdb
%path_to_qt%\qt-everywhere-opensource-src-5.7.0\qtwebengine\src\core\location_provider_qt.cpp(276): fatal error C1083: Cannot open include file: 'location_provider_qt.moc': No such file or directory
[12804/12810] CXX obj\src\core\QtWebEngineCore.web_contents_adapter.obj
ninja: build stopped: subcommand failed.
NMAKE : fatal error U1077: '%path_to_qt%\qt-build\qtwebengine\src\3rdparty\ninja\ninja.exe' : return code '0x1'
Stop.
After that I tried to create web_engine_settings.moc and location_provider_qt.moc manually, and after restarting the compilation process I got another bunch of errors:
QtWebEngineCore.url_request_custom_job_delegate.obj : error LNK2001: unresolved
external symbol "public: static struct QMetaObject const QtWebEngineCore::Favico
nManager::staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2
UQMetaObject@@B)
QtWebEngineCore.url_request_qrc_job_qt.obj : error LNK2001: unresolved external
symbol "public: static struct QMetaObject const QtWebEngineCore::FaviconManager:
:staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQMetaObj
ect@@B)
QtWebEngineCore.user_resource_controller_host.obj : error LNK2001: unresolved ex
ternal symbol "public: static struct QMetaObject const QtWebEngineCore::FaviconM
anager::staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQ
MetaObject@@B)
QtWebEngineCore.ssl_host_state_delegate_qt.obj : error LNK2001: unresolved exter
nal symbol "public: static struct QMetaObject const QtWebEngineCore::FaviconMana
ger::staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQMet
aObject@@B)
QtWebEngineCore.surface_factory_qt.obj : error LNK2001: unresolved external symb
ol "public: static struct QMetaObject const QtWebEngineCore::FaviconManager::sta
ticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQMetaObject@
@B)
QtWebEngineCore.type_conversion.obj : error LNK2001: unresolved external symbol
"public: static struct QMetaObject const QtWebEngineCore::FaviconManager::static
MetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQMetaObject@@B)
QtWebEngineCore.url_request_context_getter_qt.obj : error LNK2001: unresolved ex
ternal symbol "public: static struct QMetaObject const QtWebEngineCore::FaviconM
anager::staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQ
MetaObject@@B)
QtWebEngineCore.permission_manager_qt.obj : error LNK2001: unresolved external s
ymbol "public: static struct QMetaObject const QtWebEngineCore::FaviconManager::
staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQMetaObje
ct@@B)
QtWebEngineCore.render_view_observer_host_qt.obj : error LNK2001: unresolved ext
ernal symbol "public: static struct QMetaObject const QtWebEngineCore::FaviconMa
nager::staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQM
etaObject@@B)
QtWebEngineCore.render_widget_host_view_qt.obj : error LNK2001: unresolved exter
nal symbol "public: static struct QMetaObject const QtWebEngineCore::FaviconMana
ger::staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQMet
aObject@@B)
QtWebEngineCore.resource_dispatcher_host_delegate_qt.obj : error LNK2001: unreso
lved external symbol "public: static struct QMetaObject const QtWebEngineCore::F
aviconManager::staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCo
re@@2UQMetaObject@@B)
QtWebEngineCore.javascript_dialog_controller.obj : error LNK2001: unresolved ext
ernal symbol "public: static struct QMetaObject const QtWebEngineCore::FaviconMa
nager::staticMetaObject" (?staticMetaObject@FaviconManager@QtWebEngineCore@@2UQM
etaObject@@B)
...
My configuration file is:
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
SET _ROOT=%path_to_qt%\qt-everywhere-opensource-src-5.7.0
SET PATH=C:\Perl64\bin;C:\Python\Python2711;%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
SET QMAKESPEC=win32-msvc2015
SET _ROOT=
call ../qt-everywhere-opensource-src-5.7.0/configure -mp -ltcg -no-icu -opengl desktop -debug-and-release -force-debug-info -opensource -prefix "C:\Qt\Qt_5.7.0\MSVS_2015_x86\d-rt_d-lib" -confirm-license -nomake examples
Is there a way to solve this problem?
Thanks in advance.
Unsolved "qt is undefined " when I declare QWebChannel
Hello everyone.
I tried to use QWebEngineView with Qt 5.7.0 on Windows, I found it dose not work to invoke c++ function from javascript
QWebChannel *channel{new QWebChannel(this)};
channel->registerObject(QStringLiteral("VisJsApi"), jsApi);
channel->registerObject(QStringLiteral("VPntr"), pjso);
webView->page()->setWebChannel(channel);
document.addEventListener("DOMContentLoaded", function() {
new QWebChannel(qt.webChannelTransport, function(channel) {
window.VisJsApi = channel.objects.VisJsApi;
window.VPntr = channel.objects.VPntr;
});
});
when I use textQtWebchannel to test.
function textQtWebchannel() {
if (typeof QWebChannel != 'undefined') {
alert("QWebChannel on");
} else {
alert("QWebChannel off");
}
if (typeof navigator != 'undefined') {
alert("navigator on");
if (typeof navigator.qtWebChannelTransport != 'undefined') {
alert("navigator.qtWebChannelTransport on");
} else {
alert("navigator.qtWebChannelTransport off");
}
} else {
alert("navigator off");
}
if (typeof qt != 'undefined') {
alert("qt on");
if (typeof qt.webChannelTransport != 'undefined') {
alert("qt.webChannelTransport on");
new QWebChannel(qt.webChannelTransport, function(channel) {
window.VisJsApi = channel.objects.VisJsApi;
window.VPntr = channel.objects.VPntr;
});
} else {
alert("qt.webChannelTransport off");
}
} else {
alert("qt off");
}
};
what i finially find it print out:
QWebChannel on
navigator on
navigator.qtWebChannelTransport off
qt off
Solved Accessing local storage on a web page
I figured out a way. I just call a Javascript on the WebEngineView to localStorage.setItem(), and that is it! :~)
Unsolved QWebpage tohtml() get the wrong html
file :ca.h
#ifndef CA_H #define CA_H #include <QObject> #include <string> #include <QtWebEngineWidgets/qwebengineview.h> #include <QtWebEngineWidgets/qwebenginesettings.h> class CA:public QObject { Q_OBJECT public: CA(); void spider(const std::string& str); public slots: void finish(bool is_ok); private: QWebEngineView *view ; }; #endif // CA_Hfile:ca.cpp
#include "ca.h" #include <QString> CA::CA() { view = nullptr; } void CA::spider(const std::string& str) { qDebug("spider"); if(view == nullptr) { qDebug("new QWebEngineView"); view = new QWebEngineView; view->setUrl(QUrl(QString::fromStdString(str))); QObject::connect( view , &QWebEngineView::loadFinished , this , &CA::finish ); QWebEngineSettings *setting = view->page()->settings(); setting->setAttribute( QWebEngineSettings::AutoLoadImages , false ); view->resize(1024, 750); } else { view->setUrl(QUrl(QString(str.c_str()))); } //view->show(); } void CA::finish(bool is_ok) { if(is_ok) { qDebug("load successed!"); view->page()->toHtml( [](const QString &str )mutable -> void { QString html = str ; qDebug()<<html; } ); } else { qDebug("load error!"); } }file main.cpp
#include <QCoreApplication> #include <QApplication> #include "ca.h" using namespace std; int main(int argc, char *argv[]) { QApplication a(argc, argv); CA ca; ca.spider("https://dangdang.tmall.com/search.htm?search=y&orderType=newOn_desc&pageNo=88"); return a.exec(); }when the slots funcion nothing happened just cout
load successed!Unsolved How to send network requests in QWebEngine
http://doc.qt.io/qt-5/qtwebengine-overview.html
Qt WebEngine Core provides an API shared by Qt WebEngine and Qt WebEngine Widgets for handling URL requests issued for the networking stack of Chromium and for accessing its HTTP cookies.
Implementing the QWebEngineUrlRequestInterceptor interface and installing the interceptor on a profile enables intercepting, blocking, and modifying URL requests (QWebEngineUrlRequestInfo) before they reach the networking stack of Chromium.
A QWebEngineUrlSchemeHandler can be registered for a profile to add support for custom URL schemes. Requests for the scheme are then issued to QWebEngineUrlSchemeHandler::requestStarted() as QWebEngineUrlRequestJob objects.
The QWebEngineCookieStore class provides functions for accessing HTTP cookies of Chromium. The functions can be used to synchronize cookies with QNetworkAccessManager, as well as to set, delete, and intercept cookies during navigation.
So,I Overwrite QWebEngineUrlRequestInfo:
#ifndef WEBURLREQUESTINTERCEPTOR_H #define WEBURLREQUESTINTERCEPTOR_H #include <QWebEngineUrlRequestInterceptor> class WebUrlRequestInterceptor : public QWebEngineUrlRequestInterceptor { Q_OBJECT public: WebUrlRequestInterceptor(QObject *p = Q_NULLPTR); void interceptRequest(QWebEngineUrlRequestInfo &info); }; #endif // WEBURLREQUESTINTERCEPTOR_H #include "weburlrequestinterceptor.h" #include <QDebug> WebUrlRequestInterceptor::WebUrlRequestInterceptor(QObject *p) :QWebEngineUrlRequestInterceptor(p) { } void WebUrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info) { QString rsrct = ""; switch(info.resourceType()){ case 0:rsrct="ResourceTypeMainFrame = 0, // top level page";break; case 1:rsrct="ResourceTypeSubFrame, // frame or iframe";break; case 2:rsrct="ResourceTypeStylesheet, // a CSS stylesheet";break; case 3:rsrct="ResourceTypeScript, // an external script";break; case 4:rsrct="ResourceTypeImage, // an image (jpg/gif/png/etc)";break; case 5:rsrct="ResourceTypeFontResource, // a font";break; case 6:rsrct="ResourceTypeSubResource, // an other subresource.";break; case 7:rsrct="ResourceTypeObject, // an object (or embed) tag for a plugin,";break; case 8:rsrct="ResourceTypeMedia, // a media resource.";break; case 9:rsrct="ResourceTypeWorker, // the main resource of a dedicated worker.";break; case 10:rsrct="ResourceTypeSharedWorker, // the main resource of a shared worker.";break; case 11:rsrct="ResourceTypePrefetch, // an explicitly requested prefetch";break; case 12:rsrct="ResourceTypeFavicon, // a favicon";break; case 13:rsrct="ResourceTypeXhr, // a XMLHttpRequest";break; case 14:rsrct="ResourceTypePing, // a ping request for <a ping>";break; case 15:rsrct="ResourceTypeServiceWorker, // the main resource of a service worker.";break; case 16:rsrct="ResourceTypeUnknown";break; default : rsrct="未知类型";break; } qDebug()<<"\t"<<Q_FUNC_INFO<<":\n\t\t" << "WebUrlRequestInterceptor::interceptRequest " <<info.requestMethod() <<"\r\n "<<info.requestUrl()<<" "<<rsrct <<"\r\n"; }overWrite QWebEnginePage:
WebPage::WebPage(QWebEngineProfile *profile, QObject *parent) : QWebEnginePage(profile, parent) { WebUrlRequestInterceptor *wuri = new WebUrlRequestInterceptor(); profile->setRequestInterceptor(wuri); }And then,I can intercepting request.But I can't receive replies . Can you?
Unsolved Back navigation ("Backspace") bloked, but I can back to "about:blank" url.
I have a little issue, that connected with "about:blanked" url and "Backspace" button navigation. I have window with web view. I need to clear web view, when I close a window. I use function like this -> loadHtml(""), to clear web view. Then, when I open this window again, I load new page, with normal url, for example "http://www.qt.io/". When I press "Backspace" button, I can successfully navigate to "about:blanked" page. Note, that i have solution applied(see code below), to block back/forward navigation, but this do not work, because there is no "navigationRequested", but always emits "urlChanged". Simple example here. Thanks for help!
webView.onNavigationRequested: {
if(request.navigationType === WebEngineView.BackForwardNavigation) {
print("onNavigationRequested", request.url)
request.action = WebEngineView.IgnoreRequest;
}
}
Unsolved QWebEngineView filter content before rendering?
Hi,
I want to modify resource content before it rendered (such as javascript that loaded by url src="... " in html code). I have tried with QWebEngineUrlSchemeHandler but not work, anyone can point me how to do that?
Thanks!
Unsolved How do you send key events to QWebEngineView if sendkey() doesn't work?
How can I send a key event to QWebEngineView? With QWebView I just used sendkey(), but that doesn't work for webengine. I basically have a virtual keyboard as part of my kiosk application the users can use to enter information on a specific webpage.
Unsolved Incorrect XML reported when running in WebEngineView, works fine in IE, Chrome
I have a "legacy" classic ASP web application, which has an ASP page that generates XML used to render a menu within the JS windowing framework (DHTMLX in this case). It works fine "externally" in Chrome and IE10+, but when I try to run it within QtWebEngineView, the javascript ends up reporting Invalid XML.
The ASP generates XML like this:
<%
Response.ContentType = "application/xml"
Response.write(GetMenu())
%>
Where GetMenu() is an ASP function that interacts with the database to generate the appropriate menu. The generated XML is very short and simple for my testing purposes:
<?xml version="1.0" encoding="UTF-8"?>
<menu>
<item id="file" text="File"></item>
</menu>
This all works as expected in both IE and Chrome on PC.
But when I try to run the very same app within my Qt app which is using QWebEngineView, the javascript ends up reporting "incorrect XML" for the menu, and I really have no idea why.
Is there some secret setting somewhere in the WebEngineView that I need to make? I know it's Chromium based, but so is Chrome and it works in Chrome when run directly.
Please let me know if there is any other info I can provide to be helpful.
Thanks!
Solved How to stream live content from YouTube using QWebEngineView
Your code works seamlessly for normal YouTube videos. Live video streams still have the flicker effect.
Thanks for your time
Solved QWebEngineView, allow embedded JavaScript to use window.open
Ok this put me in the right direction, having subclassed both the view and page, and using createWindow and acceptNavigationRequest, I see how this all works now.. Thanks!
Unsolved Has anyone deployed an application using QtWebEngine on Linux successfully?
I don't mean building it on a linux box, I mean packaging it up into a self-contained application that can be dropped onto a clean (no Qt) box and actually load a webpage?
I'm finding this really difficult to do and wanted to converse with someone who has actually done this.
I can get all the rest of my application's QML UIs to function properly, but as soon as I try to navigate a WebEngineView - core dump. Not a core dump when the view is displayed, only after trying to navigate.
Thanks :)