Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Need more RTTI
Forum Updated to NodeBB v4.3 + New Features

Need more RTTI

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nicolay
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      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.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • R Offline
        R Offline
        r2d3
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved