Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
QMetaType and pointer
Hello,
I succeeded in creating a new QMetaType with a class using :
|
Source code
|
1
|
Q_DECLARE_METATYPE(MyClass)
|
and :
|
Source code
|
1
|
qRegisterMetaType<MyClass>("MyClass");
|
But the problem is that I want a pointer on a MyClass object.
Can you help me ?
Thanks
RE: QMetaType and pointer
Well, the solution is to convert into a void* and to use the type voidStar.