[PyQt] PyQt signals priority
phil at riverbankcomputing.com
Sun Mar 31 17:48:43 BST 2019
On 31 Mar 2019, at 5:26 pm, <kristof.mulier at telenet.be> <kristof.mulier at telenet.be> wrote:
> Is there a way to set a priority on programmatically fired pyqt signals?
> I've posted a StackOverflow question about the matter:
> 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.
More information about the PyQt