Properly initialize WebEngineView
Unsolved
QtWebEngine
-
I've decided to add YouTube video playback feature in my app (in QML), so I choose
WebEngineView
As I watched the documentation I do this in
main.cpp
:QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QtWebEngineQuick::initialize();
Before initializing QCoreApplication.
And in my view i use this:
import QtWebEngine 1.10 ... WebEngineView { width: 600 height: 300 Component.onCompleted: { url = model.gameVideoUrl } } ...
This works but I have this message in output (happens when item initializes):
QWebEngineFileSystemAccessRequest is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type. QWebEngineCertificateError is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type. QWebEngineFullScreenRequest is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type. QWebEngineLoadingInfo is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type.
What am I doing wrong?