qobject_cast has several advantages over dynamic_cast:
- it works without RTTI;
- it's usually faster.
Also, when it comes to casting QObjects, qobject_cast is de facto
standard.
davidedmundson |
KWin |
qobject_cast has several advantages over dynamic_cast:
Also, when it comes to casting QObjects, qobject_cast is de facto
standard.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |