ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

сообщение · 2022-09-24 23:50 UTC
K
Replymessage unavailable
I recommend you not use setContextProperty, as it adds your Python classes to the QML global namespace. IIRC it was the first way to interface C++ classes with QML (at the time the API was created. Now you can access it in python). Better is to use more automatic registration available now. Any python classes you wish to expose to QML, annotate the class with @QmlElement https://doc.qt.io/qtforpython/PySide6/QtQml/QmlElement.html This will automatically register the class as a QML type. Then, in QML you can create an instance of the python class using MyPythonClass { id: foo } And use it like any other QML type.

All messages on 24 September 2022 · Whole feed · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog