[Development] Qt5 and dynamic meta object

Stephen Kelly steveire at gmail.com
Mon Oct 15 11:24:23 CEST 2012


Forwarding to qt-devel. The qt-qml mailing list should be closed.


Renato Araujo wrote:

> Hi guys,
> 
> 
> I'm working to port a library based on qt4.8 and qtquick 1.1 to qt5
> and qtquick 2.0.
> This library uses dynamic metaobject to export dynamic properties
> signals and slot.
> What this library does is override the metaObject() function to return
> a new custom metaobject.
> This use to work on qt4 as you can see on this example[1], but during
> my port to qt5 this stoped to work,
> I'm not sure whats happen but now the same code ported to qt5 [2] does
> not work as expected.
> 
> Could someone help me on that, I'm afraid of that now qtquick check on
> static metaobject information, before query for any property value.
> This will make impossible to port the current code to work in the same
> way in qt5.
> 
> 
> [1] Qt4.8 example: https://github.com/renatofilho/qml4.git
> [2] Qt5.0 beta1 example: https://github.com/renatofilho/test-qml.git
> 
> Thanks
> Renato





More information about the Development mailing list