On Thursday 15 October 2009 18:24:57 Olivier Goffart wrote:
> On Thursday 15 October 2009 13:13:45 Frank Hemer wrote:
> > Even though 4.6 claims to be binary compatible it seems that (some?)
> > types declared with Q_DECLARE_METATYPE, in my case 'QObjectList' are no
> > more declared by default.
> > The same applies to qScriptRegisterSequenceMetaType <QObjectList> (...).
> >
> > Fortunatelly the QtScript engine throws a warning in this case, however
> > it is misleading as it moans about a missing qScriptRegisterMetaType.
> >
> > Does anybody know whether this is a bug or by intention, and what other
> > types possibly are affected?
>
> Hi,
>
> Are you sure Q_DECLARE_METATYPE QObjectList was declared in Qt 4.5?
>
> I could not compile the attached file even with 4.5
>
> I quickly looked at the code and QObjectList is still declared as a by
> default, and registered.
>
> And if i uncomment the Q_DECLARE_METATYPE line on my example, it works both
> in Qt 4.5 and Qt 4.6
Hmm - I'm absolutely sure its defined nowhere else in my (rather huge)
application.
But my usecase is a little different:
qs:
var child = Form.findChild ("child1");
var children = child.findObjects ("MyClass");
and only in 4.6 code I need to set:
Q_DECLARE_METATYPE (QObjectList);
qScriptRegisterSequenceMetaType <QObjectList> (scriptEngine);
Maybe it has sth. to do with usage of findObjects (QString) ???
At least thats where the error is thrown when qs is executed.
Frank
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback