[Interest] qobject_cast

Ch'Gans chgans at gna.org
Thu Apr 20 06:52:25 CEST 2017

On 20 April 2017 at 16:38, Igor Mironchik <igor.mironchik at gmail.com> wrote:
> Hi,
> What the benefits of qobject_cast<> on simple static_cast<>? Or there is no

- works only on QObject (obviously)
- returns nullptr if the object cannot be casted to the required type
- doesn't relies on RTTI, and is way faster than dynamic cast


> one?
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

More information about the Interest mailing list