ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

13 May 2022
2022-05-13×
13 May 2022
Yes - to communicate with signals and slots across the thread boundary, you need to have a QApplication, and it needs to be running app.exec(). In fact, Qt does not guarantee the Qt APIs to really function if you don't have a QCoreApplication|QGuiApplication|QApplication.
Oh I realized that my message edits probably didn't go through the channel syncing bots well.. I'll repost:
K
Asynchronous signals and slots are a great way to communicate between threads - as Qt manages the thread synchronization. Each QThread has it's own Qt event queue and loop - QApplication comes with one - and is what is started when you call qApp.exec(). The way it works is that when you emit a signal in one thread, and it is received by an object that is in another thread, an event that encodes the slot to call, the arguments, and the target object is posted on the Qt event queue of the thread of that object. Qt manages the thread synchronization of posting the message generated in one thread applied to the event queue of the other thread. Then, when the event queue is next serviced by the target object's thread, the event processing code will do the calling of the slot with the provided arguments. However, for that all to work, you need to have event loops started on both threads.
Calendar: May 2022
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