Important: Please read the Qt Code of Conduct -

Need more RTTI

  • How get pointer to class functions/fields by func/field name.

  • C++ in general has little till no introspection at all. In Qt you can profit from the meta object system.

    If you have further questions, please refine your question - after reading and understanding "this": You might get a more useful answer then.

    And by the way: Writing all caps is interpreted as shouting loudly and regarded rude behavior. You may not get an answer at all in other places.

  • Hello,

    with C++ you could not get pointer to function using string as input. You could just get them statically at compile-time. You could use a chain of dynamic_cast to handle all your subclasses but there is no real introspection built-in C++.

    With Qt you could use "QMetaObject": to access slots/signals/properties



Log in to reply