[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Error message on import of QWebEngineView
From: David Cortesi <davecortesi () gmail ! com>
Date: 2022-10-13 17:55:02
Message-ID: CALyzANvC=Y86WGqkgNdZ2LTZ+F-83L=Eg-msLzQBh2B2Yr_QcQ () mail ! gmail ! com
[Download RAW message or body]
When my code, long subsequent to creating the QApplication and a main
window, hits this statement,
from PyQt6.QtWebEngineWidgets import QWebEngineView
the following error message appears,
Qt WebEngine seems to be initialized from a plugin. Please set
Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute and
QSGRendererInterface::OpenGLRhi using QQuickWindow::setGraphicsApi before
constructing QGuiApplication.
I could do the first thing at the time I create the QApplication, but I
never have cause to import QQuickWindow and don't want to.
Can anybody shed light on what this is about?
[Attachment #3 (text/html)]
<div dir="ltr"><div>When my code, long subsequent to creating the QApplication and a \
main window, hits this statement,</div><div><br></div><div> from \
PyQt6.QtWebEngineWidgets import QWebEngineView</div><div><br></div><div>the following \
error message appears,</div><div><br></div><div>Qt WebEngine seems to be initialized \
from a plugin. Please set Qt::AA_ShareOpenGLContexts using \
QCoreApplication::setAttribute and QSGRendererInterface::OpenGLRhi using \
QQuickWindow::setGraphicsApi before constructing \
QGuiApplication.</div><div><br></div><div>I could do the first thing at the time I \
create the QApplication, but I never have cause to import QQuickWindow and don't \
want to.</div><div><br></div><div>Can anybody shed light on what this is \
about?</div><div><br></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic