ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

29 August 2022
2022-08-29×
29 August 2022
@Numerlor I would be surprised if the QWindow doesn't get a close event in all cases. Try calling myWidget.window().windowHandle() to get the QWindow... Oh, but there is no close event for QWindow... I guess I would use it's QObject destroyed signal to get what you're looking for. That will be signaled immediately before the destruction of the window.
The destroy signal will be emitted from any and all QObjects. It's a signal defined in QObject itself.
If it's closing and destruction of windows, I would use the close signal on the QWidget, and the destroyed signal on it's QWindow (windowHandle() of top-level widget). Both together should cover the situation you were missing.
K
Or, actually, you may not even need to do that. Just assume they are the right type (even though type doesn't show it) and call the methods you need.
K
I'm not sure if the destroy event would be enough - depends on if you wanted to cover instances where the window was closed but not destroyed.
I suppose you could use a dictionary for that. Index by cpp pointer, get your objects.
I'm not sure what those represent.
K
I'd have to dive into the sources, or we could ask @ctismer . I'm sure he'd know off the top of his head :)
Calendar: August 2022
MoTuWeThFrSaSu1223445406786941029111812131415161718191201212212322243251262732829193025313
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