[Qt-interest] Treating User defined type as QVariant via void*
Santhosh Y
santhosh at softjin.com
Wed Sep 22 12:21:05 CEST 2010
1>------ Build started: Project: variant_test, Configuration: Debug
Win32 ------
1>Compiling...
1>variant.cpp
1>c:\qt\4.5.2\include\qtcore\../../src/corelib/kernel/qmetatype.h(189) :
error C2039: 'qt_metatype_id' : is not a member of 'QMetaTypeId<T>'
1> with
1> [
1> T=Node *
1> ]
1>
c:\qt\4.5.2\include\qtcore\../../src/corelib/kernel/qmetatype.h(189) :
while compiling class template member function 'int
QMetaTypeId2<T>::qt_metatype_id(void)'
1> with
1> [
1> T=Node *
1> ]
1>
c:\qt\4.5.2\include\qtcore\../../src/corelib/kernel/qmetatype.h(199) :
see reference to class template instantiation 'QMetaTypeId2<T>' being
compiled
1> with
1> [
1> T=Node *
1> ]
1>
c:\qt\4.5.2\include\qtcore\../../src/corelib/kernel/qvariant.h(585) :
see reference to function template instantiation 'int qMetaTypeId<T>(T
*)' being compiled
1> with
1> [
1> T=Node *
1> ]
1>
c:\qt\4.5.2\include\qtcore\../../src/corelib/kernel/qvariant.h(327) :
see reference to function template instantiation 'bool
qVariantCanConvert<T>(const QVariant &)' being compiled
1> with
1> [
1> T=Node *
1> ]
1> .\variant.cpp(62) : see reference to function template
instantiation 'bool QVariant::canConvert<Node*>(void) const' being compiled
1>Build log was saved at
"file://c:\cygwin\home\AFTERCHANGE\aera2GUI\variant_test\debug\BuildLog.htm"
1>variant_test - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
On 9/22/2010 3:26 PM, Stephen Kelly wrote:
> Santhosh Y wrote:
>
>
>> Hi ,
>>
>> Please find the attached file.
>> Here I am trying to treat Node* as QVariant, since only QVariant can be
>> exported across 2-different process via COM (activeX control)
>> When I am trying to build this, I am facing compilation issues.
>> Can you guide us in resolving the issue over here .
>>
>>
>>
> What is the compilation error? Is it that Node does not have a default
> constructor? Then create a default constructor.
>
> All the best,
>
> Steve.
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
----------------------------------------------------
Y Santhosh Kumar -
Senior Software Engineer,
SoftJin Technologies Pvt Ltd,
www.softjin.com
----------------------------------------------------
Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for the use of the individual or entity to which they are addressed. It
may contain confidential, proprietary or legally privileged information.
If you are not the intended recipient please be advised that you have
received this message in error and any use is strictly prohibited. Please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender by return mail. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________
More information about the Qt-interest-old
mailing list