python-qt5 icon indicating copy to clipboard operation
python-qt5 copied to clipboard

QOpenGLContext object has no attribute "functions"

Open zzador opened this issue 2 years ago • 0 comments

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?

zzador avatar Jul 04 '23 11:07 zzador