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

Example to bind C++ QML registered elements to python.



    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future version
    • 6.x
    • Shiboken
    • None
    • All



      As we all know Python is not the best player with speed especially when it comes to multiple callbacks (that's where QML properties shine).

      Although the new QML integration with Python is more complete than ever, It still not a match for C++.

      IMO Python is not a good choice to create elements in (at least for create-able elements), maybe only for prototypes.

      For the past two weeks i have been struggling with creating bindings for qml elements written in C++ to Python.

      I have read through the documentation, did the examples (that are somewhat trivial and not very helpful), Watched all Qt tutorials about `Shiboken` on YouTube but they were all more of a POC than a tutorial really  (I'm looking at you Cristian Maureira-Fredes ), tried to copy and learn from open-source project like KDockWidget or pyqwt that did bindings to python from actual Qt libraries.

      And couldn't bind even A plain `QObject` derived class!

      It might be that I'm stupid but it would be great to have a more real world "simple-binding-example".
      My try to bind QObject derived can be found here.


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



            kleint Friedemann Kleint
            nir nir benlulu
            0 Vote for this issue
            3 Start watching this issue



              Gerrit Reviews

                There are no open Gerrit changes