Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QOpenGLContext object has no attribute "functions" #77

Open
zzador opened this issue Jul 4, 2023 · 0 comments
Open

QOpenGLContext object has no attribute "functions" #77

zzador opened this issue Jul 4, 2023 · 0 comments

Comments

@zzador
Copy link

zzador commented Jul 4, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant