I accidently found a solution,
It looks like adding the code snippet below anywhere in my code fixes the problem:
#include <QWebEngineView>
class QT_WebView : public QWebEngineView
{
Q_OBJECT
public:
QT_WebView
(QWidget *in_parent
= NULL) : QWebEngineView
(in_parent
) {}};
#include <QWebEngineView>
class QT_WebView : public QWebEngineView
{
Q_OBJECT
public:
QT_WebView(QWidget *in_parent = NULL) : QWebEngineView(in_parent) {}
};
To copy to clipboard, switch view to plain text mode
No need to mentioned that this is as hocus pocus as it gets and the hack is quite a huge dependency to add in a project. I'm still digging and hopping to find an more elegant fix.
It seems the bug has to do with OpenGL context sharing and I try quite a few combinations without any good outcome so far.
Bookmarks