Closed kndidox closed 2 years ago
I don't think the error is part of the code you show. Please provide a minimal example (code) that can be used to reproduce the issue. OS? versions? how did you install PySide2? thanks!
Hello Leon, thanks for your answer.
In this pastebin codes you can see 2 simple methods where im trying to create this feature.
Widget: https://pastebin.com/L8Cr0x9P
Node: https://pastebin.com/2AKsNKaS
Im running this code in Ubuntu 20.04.03 Python 3.8.10 PySide2 5.15.2 QtPy 1.9.0
Thanks again for your help.
I get similar errors
Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
Did you follow the error instructions? In any case this is very likely PySide2 related, and not Ryven.
I tried creating a PyQtWebEngine widget to display html in a node. I did it with the following code:
`class HTMLDisplay_MainWidget(MWB, QWebEngineView): def init(self, params): MWB.init(self, params) QWebEngineView.init(self)
self.setLayout(QVBoxLayout())
I get the following error
"Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication. Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created. WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed. LaunchProcess: failed to execvp: /usr/local/lib/python3.8/dist-packages/PySide2-5.15.2-py3.8-linux-x86_64.egg/PySide2/Qt/libexec/QtWebEngineProcess LaunchProcess: failed to execvp: /usr/local/lib/python3.8/dist-packages/PySide2-5.15.2-py3.8-linux-x86_64.egg/PySide2/Qt/libexec/QtWebEngineProcess Trace/breakpoint trap (core dumped) "
please advice.