[Qt-qml] QDeclarativeProperty and custom qml types.

Simon Aridis-Lang llamatronique at gmail.com
Sun Oct 24 23:30:19 CEST 2010


Thanks for the tips (it confirmed i wasn't going completely bonkers), but I think there might be an issue with QDeclarativePropertyPrivate::write.

(qdeclarativeproperty.cpp:950) obtains an enginePriv* which is obtained from a passed in (private) context pointer, so even if the property is created by passing in an engine explicitly, it's not actually used for type checking.

Anyway, passing in a context to QDeclarativeProperty works for now,  I'll submit a ticket.

On 24/10/2010, at 4:20 AM, Charley Bay wrote:

> I don't see anything wrong here -- are you sure "MyTypeA" has
> Q_OBJECT in the header and went through "moc"?





More information about the Qt-qml mailing list