[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt signals priority
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2019-03-31 16:48:43
Message-ID: 5D53CD3A-CB69-4CB7-A57A-7242573CA2B0 () riverbankcomputing ! com
[Download RAW message or body]

On 31 Mar 2019, at 5:26 pm, <kristof.mulier@telenet.be> <kristof.mulier@telenet.be> \
wrote:
> 
> Hi,
> Is there a way to set a priority on programmatically fired pyqt signals?
> I've posted a StackOverflow question about the matter:
> https://stackoverflow.com/questions/55442777/pyqt5-how-to-set-a-priority-to-a-pyqtsignal
>  Please leave your reply on the StackOverflow page (or send it over mail).

You have misunderstood how signals work. Unless you are using a queued connection \
emitting a signal simply invokes a list of callbacks (ie. the slots).

If your GUI is freezing then your slots are taking too long to run without giving the \
event loop a chance. Call QCoreApplication.processEvents() in your slot.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic