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:
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.
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?