[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: Pending events
From: Giuseppe Corbelli <corbelligiuseppe () mesdan ! it>
Date: 2020-07-29 7:12:37
Message-ID: 68b10f7c-08f9-826f-41d0-962fa088b0a9 () mesdan ! it
[Download RAW message or body]
On 7/28/20 10:36 AM, Timothy W. Grove wrote:
> Is there a way to view pending events in the event queue? Thanks.
This is a Qt question, not a PyQt one.
A quick look at Qt sources shows:
void QCoreApplication::processEvents(QEventLoop::ProcessEventsFlags flags)
{
QThreadData *data = QThreadData::current();
if (!data->hasEventDispatcher())
return;
data->eventDispatcher.load()->processEvents(flags);
}
Since QThreadData is private there's no direct way to look into the
event queue.
You could however fiddle with QAbstractEventDispatcher and/or event
filters, depending on what you need to do it may be enough.
--
Giuseppe Corbelli
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic