Hi everybody, I would use Reflection on Qt, but I do not know how I can do that. In Java, any object can be instantiated and be called even if unknown. In Qt, I can only do this when I know that this object. Has anyone used Reflection in Qt?

My Object:

Qt Code:
  1. class Obj : public QObject
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. Q_INVOKABLE Obj(QObject *parent = 0);
  7. Q_INVOKABLE virtual ~Obj();
  8.  
  9. Q_INVOKABLE virtual QVariant execute (QList<QVariant> &);
  10. Q_INVOKABLE uint getKey();
  11. };
To copy to clipboard, switch view to plain text mode