Quote Originally Posted by rmat View Post
Thanks a lot for your answer, I have a question. I try to keep the Interface class as general as possible. I void like to be able of sending a class. Should I use then QObject?
QVariant also accepts pointers to QObject instances.

And if I want be also independent of any library what I could use instead of void*? (I'm using void* also in other functions, where I return an object)
If you don't want to rely on Qt then create your own variant class with strict conversion rules and use that.