[PyQt] Very weird behaviour with a new style slot
Phil Thompson
phil at riverbankcomputing.com
Sun Apr 6 17:19:36 BST 2014
On 06-04-2014 5:06 pm, Jeremy Sanders wrote:
> This code seems to have problem with new style slots (commented out
> lines).
> It works works with the old style slot support. False is passed to
> the
> doClicked method, not the text a, b, c.
Qt4 implements signals with optional arguments as multiple signals.
PyQt considers the default as the version with all arguments specified -
that's the one you are now connecting to. To connect to the one your old
code was connecting to do...
button.clicked[()].connect(...
Phil
More information about the PyQt
mailing list