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

PySide2 access to shared OpenGL context

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • None
    • PySide
    • None

      With Qt4/PySide Q3dPort.cpp was suggesting using

      // Can access from Python via PySide like this:
      //               import PySide.QtGui
      //             import PySide.QtOpenGL
      //                import shiboken
      //
      //                widget = PySide.QtGui.qApp.property("mayaSharedQGLWidget")
      //         ptr = long(shiboken.getCppPointer(widget)[0])
      //               glWidget = shiboken.wrapInstance(ptr, PySide.QtOpenGL.QGLWidget)
      

      Qt5 PySide2 at the moment doesn't have a module QtOpenGL
      need to resolve how/what is needed to gain access

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ctismer Christian Tismer
            ablasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes