Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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":http://www.catb.org/~esr/faqs/smart-questions.html. 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":http://doc.qt.nokia.com/latest/qmetaobject.html to access slots/signals/properties

    Regards

    David


Log in to reply