<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi, happy new Year,</p>
    <p>I was using QQuickRenderControl with pyside2 :<br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/jgirardet/MyCartable/blob/dev/src/mycartable/conversion/grabber.py">https://github.com/jgirardet/MyCartable/blob/dev/src/mycartable/conversion/grabber.py</a></p>
    <p><br>
    </p>
    <p>I can't make it work with PyQt5. One problematic line is line 45
      :<br>
    </p>
    <p><span class="pl-s1">self</span>.<span class="pl-s1">m_quickWindow</span>
      <span class="pl-c1">=</span> <span class="pl-v">QQuickWindow</span>(<span
        class="pl-s1">self</span>.<span class="pl-s1">m_renderControl)</span></p>
    <p><span class="pl-s1">QQuickWindow with pyqt5 doesn"t accept
        QQuickREnderControl as parent (but it seems C++ does
<a class="moz-txt-link-freetext" href="https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/quick/rendercontrol/window_singlethreaded.cpp?h=5.15#n119">https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/quick/rendercontrol/window_singlethreaded.cpp?h=5.15#n119</a>)</span></p>
    <p><span class="pl-s1">So how could I use QQuickRenderControl with
        pyqt5, do you have an example ?</span></p>
    <p><span class="pl-s1">More generally I just want to render some QML
        offscreen and grab the content. Do you have any other way to do
        it ?</span></p>
    <p><span class="pl-s1"><br>
      </span></p>
    <p><span class="pl-s1">Thanks for help</span></p>
    <p><span class="pl-s1">Jimmy<br>
      </span></p>
  </body>
</html>