[PyQt] QObject::connect: Parentheses expected, signal Actor::

Maxime Lemonnier maxime.lemonnier at gmail.com
Wed Mar 6 18:01:09 GMT 2019


Hi,
Thank you very much. It seems indeed benign as all the implied bindings
work correclty afaik. when should I expect for it to make it to PyPI?

Thanks for upping the limit, but, why the need for a limit? There isn't any
on the C++ side?

Is it a global PyQt5 limit, or, e.g. a per-module limit?

On Wed, Mar 6, 2019 at 11:54 AM Phil Thompson <phil at riverbankcomputing.com>
wrote:

> On 28 Feb 2019, at 9:10 pm, Maxime Lemonnier <maxime.lemonnier at gmail.com>
> wrote:
> >
> > When I derive a class from QObject and use it from qml, I get annoying
> warnings if I declare a property in the qml declaration, and bind that
> property anywhere.
> >
> > I get one
> >
> > 'QObject::connect: Parentheses expected, signal MyClass::'
> >
> > per binding, which can amount to a lot. so many in fact that it slows
> down startup time of my app significantly (.5s on Linux, 15-20s on Windoze).
> >
> > I can fix it by deriving from QQuickItem instead, but then I hit a
> mysterious:
> >
> > 'TypeError: a maximum of 30 QQuickItem types may be registered with QML'
> >
> > Where does this limitation comes from?, I get no hit from google on it.
> >
> > thank you
> >
> > (I sent this message once, but I forgot I unsubscribed to mailing list,
> so I'm resending it since it does not appear in the archive, sorry If I
> double-sent)
>
> This should be fixed in tonight's snapshot. I think the message is benign
> - but I'm not completely sure.
>
> I've also doubled the limit on the number of QQuickItem types you can
> register.
>
> Phil
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190306/22f33fa3/attachment.html>


More information about the PyQt mailing list