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

PySide2 access to shared OpenGL context

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes