Yes it does, read manual about QMetaType::details. First example shows how to do it.
Yes it does, read manual about QMetaType::details. First example shows how to do it.
Excellent, thank you very much!
What about template programming ?
...یه مرد هیچوقت زمین نمیخوره
Alir3z4, could you share your thoughts on how you would use template programming to accomplish this? If one is reading information (strings) from a configuration file, I'm not sure how template programming can help to get around having if...else if...else logic to instantiate the appropriate templated-type. How were you thinking of using templates for this?
Oh, i misunderstood by it, i tought you mean by the type, but as you mentioned creating an object from a string name
![]()
...یه مرد هیچوقت زمین نمیخوره
Bookmarks