Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2013

PySide Missing OpenGL Functions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.1
    • PySide
    • None
    • Windows 10 x64-bit
      Python 3.8.10 x64-bit
      PySide 6.3.1
    • Windows
    • b35a0eb98 (dev), a09f6aa2a (6.5)

    Description

      PySide6.QtGui.QOpenGLFunctions is missing many functions:
       

      from OpenGL import GL
      from PySide6.QtGui import QOpenGLFunctions
      
      if __name__ == '__main__':
          glfuncs = set(dir(GL))
          qglfuncs = set(dir(QOpenGLFunctions))
      
          diff = glfuncs.symmetric_difference(qglfuncs)
      
          with open('diff.txt', 'w') as w:
              for item in sorted(diff):
                  w.write(item + '\n')
      

      Specifically, there's a disconnect between the Qt 6.3 C++ QOpenGLFunctions functions and those ported to PySide6 (I personally need glGetBooleanv):

      glActiveTexture
      glBufferData
      glBufferSubData
      glGetActiveAttrib
      glGetActiveUniform
      glGetBooleanv
      glGetProgramInfoLog
      glGetShaderInfoLog
      glGetVertexAttribPointer
      

      (see qt6_vs_pyside6_diff.txt.)

      Attachments

        1. diff.txt
          66 kB
        2. pyside2017_repro.diff
          6 kB
        3. qt6_glfuncs.txt
          2 kB
        4. qt6_openglfuncs.csv
          9 kB
        5. qt6_vs_pyside6_diff.txt
          0.2 kB

        Issue Links

          For Gerrit Dashboard: PYSIDE-2013
          # Subject Branch Project Status CR V

          Activity