Skip to content

QOpenGLContext object has no attribute "functions" #77

@zzador

Description

@zzador

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions