You are not logged in.

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.

1

Sunday, March 19th 2006, 11:48am

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

2

Friday, March 24th 2006, 12:10pm

RE: QMetaType and pointer

Well, the solution is to convert into a void* and to use the type voidStar.