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


-- 
Olivier
#include <QtGui>
#include <QtScript>

//Q_DECLARE_METATYPE(QObjectList)

int main(int argc, char **argv)
{
    QApplication app(argc, argv);
    QObjectList list;
    QScriptEngine e;
    e.toScriptValue(list);
}
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to