How to get name of derived class

Hello everyone.

I have a set of classes which are derived from a single class.

I need to log when the derived classes are hit, so I would like to add code to the base class, that tells me which child class was initialized, but I would like to place this code in the base class in order to keep the code as simple as possible.

How can I get the name of the calling class from the base class.

I have tried using class.handle().name(), which fails.

Can anyone help me??

With Regards

Bo

classIdGet(this) will get you the ID. Then you can convert it to name by classId2Name().