mottosso/Qt.py

Missing QtWidgets.QOpenGLWidget

Closed this issue · 3 comments

The QQOpenGLWidget class is not available in QWidgets

The workaround is to import it from PySide2 directly
from PySide2.QtWidgets import QOpenGLWidget

It would be nice to have it exposed in the Qt.QWidgets module

Thanks

It's only available to Qt 5; for anything to qualify for Qt.py, it must be available in all bindings simultaneously, including PySide(1).

Note "Since: Qt 5.4"

See Qt5.py if you no longer need support for Qt 4.

Thanks
I never realized that this logic was present in qt.py
It makes total sense.
I will use qt5.py instead
Cheers