Friday, 15 May 2015

c++ - Full type names in QMetaMethod -


Is it possible to get full type names in the return type and logic type QMetaMethod?

Example,

  Namespace N1 {Nomenclature N2 {Class C1: Public QObject {Q_OBJECT}; }} Class C2: Public QObject {Q_OBJECT Public: typedef N1 :: N2 :: C1 C1T; Q_INVOKABLE void foo (C1 TC1); }; Qumeeta method method; // c2 auto name = method Some arguments for finding the name of the parameter name () zero foo (C1T); // Return "C1T" Auto Name 2 = C1T: Fixed MatteObject.Classname () // Return "N1 :: N2 :: C1"  

Is it possible to find the full name of the method, the parameter name of the method, "C1T", but "N1 :: N2 :: C1", or at least "C1"? The same problem with the namespace, that if C2N1 is in the namespace and I use N2 :: C1 as an argument type, then it gives "N2 :: C1", do I call "N1: : N2 :: C2 "?

moc does not understand C ++ type system Moka, a type is a string, And this is just another type of string if match the string. You have to live in a way to represent the parameter type, and you have to use it.


No comments:

Post a Comment