pyqt / python-qt5

Unofficial PyQt5 via PyPI for Python 2.7 64-bit on Windows
GNU General Public License v3.0
280 stars 77 forks source link

QOpenGLContext object has no attribute "functions" #77

Open zzador opened 1 year ago

zzador commented 1 year ago

Hello everybody. I'm currently trying to get an OpenGLWidget to work. I have overloaded the OpenGLQidget and the "initializeGL" function of the widget. This is the overloaded function:

def initializeGL(self): GL = self.context().functions() ...

In the line where I try to get the QOpenGLFunctions object from the context python throws:

AttributeError: 'QOpenGLContext' object has no attribute 'functions'

This is clearly wrong as the Documentation for PyQt5 clearly states that there is a "functions()" function returning the current QOpenGLFunctions object.

What am I doing wrong here?