Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to bind QML_ELEMENT from C++ to Python using Shiboken?
Forum Updated to NodeBB v4.3 + New Features

How to bind QML_ELEMENT from C++ to Python using Shiboken?

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 175 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NYBL
    wrote on 3 Jul 2022, 07:35 last edited by
    #1

    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, 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.

    1 Reply Last reply
    0

    1/1

    3 Jul 2022, 07:35

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved