[PyQt] Too many signals fired in short timespan: one step closer to solution
dariusz1989 at gmail.com
Wed Jun 13 22:09:12 BST 2018
On 13/06/2018 21:42, Telenet wrote:
> Hi Dariusz.
> What do you mean precisely?
> Get Outlook for Android <https://aka.ms/ghei36>
> On Wed, Jun 13, 2018 at 7:52 PM +0200, "Dariusz Makowski"
> <dariusz1989 at gmail.com <mailto:dariusz1989 at gmail.com>> wrote:
> I think you can specify a time for that processEvents() as well so
> it does larger process than a small one. Maybe that could help?
> On 13/06/2018 18:29, kristof.mulier at telenet.be wrote:
>> Dear PyQt users,
>> I believe we're one step closer to the solution. Please read the
>> *EDIT* at the very end of the StackOverflow question:
>> I noticed that the repeated call to app.processEvents() is the
>> culprit, when called too often in a short timespan. Removing that
>> line from the code in the slot, solved the issue. But it takes
>> down the responsiveness of my GUI. So I thought, why not query
>> first if there are any events to get processed anyway?
>> Unfortunately, the function hasPendingEvents() is not safe to use
>> when there are any non-main-threads running in the entire
>> application. That's not okay.
>> Please help...
>> PyQt mailing listPyQt at riverbankcomputing.com
> DARIUSZ MAKOWSKi
> 07 590 530 854
> Dariusz at Dariuszmakowski.com
07 590 530 854
Dariusz at Dariuszmakowski.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt