ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

31 December 2019
2019-12-31×
31 December 2019
So, I finally have a proof-of-concept now. The code is kind of messy currently cause I've tried so many things to get it work. In two words: to be able to directly invoke methods of the internal model (`QObject`-derived element inside a ListView`) I define property of my custom registered type and then simply reference it in QML handlers (such as `onClicked`). The tricky part was to add `result argument in Slot definition, otherwise the call returns nothing. And to emit a signal from the Python internal model and catch it in QML ListView element I've used a straightforward signal: Connections { target: listItem // this is a property representing a single list element onLogAdded: { log.append(message); } }
There are still some issues, in particular in some timings and addressing desired widgets, but I think they can be resolved eventuallly.
Maybe I’ll ask in the future 🙂
I didn't find these suggestions in the links you've mentioned, unfortunately, but you initiated a new mind flow in correct direction, thanks!
The progress goes really slow actually, especially comparing to the old QWidgets approach, but I think the architecture in general will be cleaner at long last.
Also, looks like a PySide2 enables QML debugging feature by default, at least on macOS, and this is very useful. PyQt is completely silent by default. But on Win7 both of them are quiet (I use PyCharm on both).
U
Btw, I've asked about native look in QML for about a month ago, and yes, QtQuick 1.0 has this feature, though the design in still not native, just mimicking, so I stick with current QtQuick version (2+)
Calendar: December 2019
MoTuWeThFrSaSu12345625781396101111232139141151617318131914202122232425262728122913012317
Archive by month
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