mike_c
19th April 2010, 04:43
Hi,
Does anyone have an idea of the performance difference between a qobject_cast and a dynamic_cast? My understanding of dynamic_cast is that it's slow, and that the amount of time taken depends on the complexity of your object heirarchy, and whether you're upcasting, downcasting etc..
How does this compare with qobject_cast? Also i see that it doesn't require RTTI, so does Qt just emulate RTTI in its meta-object system?
Thanks,
mike
Does anyone have an idea of the performance difference between a qobject_cast and a dynamic_cast? My understanding of dynamic_cast is that it's slow, and that the amount of time taken depends on the complexity of your object heirarchy, and whether you're upcasting, downcasting etc..
How does this compare with qobject_cast? Also i see that it doesn't require RTTI, so does Qt just emulate RTTI in its meta-object system?
Thanks,
mike