[PySide] QOpenGLContext::versionFunctions() returns type QAbstractOpenGLFunctions
Cristian.Maureira-Fredes at qt.io
Wed Feb 27 10:25:50 CET 2019
Since you said it does not contain a proper API,
it seems to be a bug.
Can you please report it in https://bugreports.qt.io/projects/PYSIDE
along with a small reproducible example.
From: PySide <pyside-bounces at qt-project.org> on behalf of Maxime Lemonnier <maxime.lemonnier at gmail.com>
Sent: 26 February 2019 19:37
To: pyside at qt-project.org
Subject: [PySide] QOpenGLContext::versionFunctions() returns type QAbstractOpenGLFunctions
porting my app from PyQt5 to PySide2 (5.12, PyPI latest)
QOpenGLContext.versionFunctions(some_profile) returns type QAbstractOpenGLFunctions with a absent API.
In PyQt5, it would returned a properly casted e.g. QOpenGLFunctions_4_1_Core* type which would allow me to use the gl API.
Is there a workaround?
More information about the PySide