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

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

    XMLWordPrintable

Details

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

    Description

      Hello,

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes