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

List:       pykde
Subject:    Re: [PyQt] qmlRegisterType limited to 20 Classes?
From:       Tobias Lausch <lausch () rhrk ! uni-kl ! de>
Date:       2013-11-14 18:36:29
Message-ID: 1384454189.4477.7.camel () bec-pc12 ! physik ! uni-kl ! de
[Download RAW message or body]

Am Donnerstag, den 14.11.2013, 18:53 +0100 schrieb Detlev Offenbach:
> 
> On Wednesday 13 November 2013, 20:02:22 Phil Thompson wrote:
> > On Wed, 13 Nov 2013 18:40:53 +0100, Detlev Offenbach
> > 
> > <detlev@die-offenbachs.de> wrote:
> > > On Wednesday 13 November 2013, 16:37:31 Phil Thompson wrote:
> > >> On Wed, 13 Nov 2013 16:35:31 +0100, Tobias Lausch
> > 
> > <lausch@rhrk.uni-kl.de>
> > 
> > >> wrote:
> > >> > Hi There,
> > >> > 
> > >> > approx. 50 but I would expect this limit to be breached in half a
> > 
> > year
> > 
> > >> > when nobody remembers that there has been such a limit.
> > >> 
> > >> You should get an exception when the limit is reached.
> > >> 
> > >> > Having no limit at all would be very nice.
> > >> 
> > >> ...but not possible.
> > > 
> > > Why that? Hardcoded array limits are always a bad idea. At work my
> > > developers
> > > are forced to explain the need for such a design.
> > 
> > The problem is that C++ (unlike Python) doesn't allow you to create new
> > classes at runtime. QML types (as they are implemented as C++ classes) must
> > be defined at compile time. They are mapped to Python types at runtime.
> > 
> > The fundamental problem is that QML is badly designed.
> > 
> 
> Thanks for this explanation. It is a valid reason for having a fixed limit. I 
> would accept it even from my developers ;-)
> 
> Detlev

k. Thanks from me too.
Maybe for the next release you could set nbrTypes by default to a higher
value. That would decrease the number of issues.

Tobias

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://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