[Qt-interest] Fwd: creating custom types

ami guru dosto.walla at gmail.com
Sat Jan 31 13:29:14 CET 2009


Hello Frank,

i didnt understand what you meant by that.

Is there anything you need to know more about that?

Regards
Sajjad

---------- Forwarded message ----------
From: Frank Hemer <frank at hemer.org>
Date: Sat, Jan 31, 2009 at 1:06 PM
Subject: Re: [Qt-interest] creating custom types
To: qt-interest at trolltech.com


On Saturday 31 January 2009 12:59:17 ami guru wrote:
> Hello forum,
>
>
> I am trying to create custom types as follows:
>
>
> ************************************
> struct MFRotaion
> {
>   MFRotation()
>   {
>     this->multiFieldRotationArray.clear();
>   }
>
>
>   MFRotation(const MFRotation &_mfRotation)
>   {
>     this->multiFieldRotationArray = _mfRotation.multiFieldRotationArray;
>   }
>
>   QVector<SFRotation> multiFieldRotationArray;
>
> };
>
>
> Q_DECLARE_METATYPE(MFRotation)
>
>
>
> ***********************************'
>
>
>
> The other custom types were defined and did not give any errors , but the
> above one is giving the following errors:
>
>
> *******************************************
>
> H3DCustomTypes.h:457: error: ISO C++ forbids declaration of 'MFRotation'
> with no type
> H3DCustomTypes.h:463: error: expected ',' or '...' before '&' token
> H3DCustomTypes.h:463: error: ISO C++ forbids declaration of 'MFRotation'
> with no type
> H3DCustomTypes.h:463: error: ISO C++ forbids declaration of 'MFRotation'
> with no type
> H3DCustomTypes.h: In member function 'int MFRotaion::MFRotation()':
> H3DCustomTypes.h:460: warning: no return statement in function returning
> non-void
> H3DCustomTypes.h: In member function 'int MFRotaion::MFRotation(int)':
> H3DCustomTypes.h:465: error: '_mfRotation' was not declared in this scope
> H3DCustomTypes.h:466: warning: no return statement in function returning
> non-void
> H3DCustomTypes.h: At global scope:
> H3DCustomTypes.h:463: warning: unused parameter 'MFRotation'
> H3DCustomTypes.h:473: error: 'MFRotation' was not declared in this scope
> H3DCustomTypes.h:473: error: template argument 1 is invalid
> make[2]: *** [../../Build/H3DSceneEditor/Release/H3DMainWindow.o] Error 1
> make[2]: Leaving directory `/home/sajjad/QT/H3D/src/H3DSceneEditor'
> make[1]: *** [release] Error 2
> make[1]: Leaving directory `/home/sajjad/QT/H3D/src/H3DSceneEditor'
> make: *** [sub-H3DSceneEditor-make_default-ordered] Error 2
>
>
> *******************************************'
>
>
> Any hint?

Typo at MFRotaion???

Frank

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090131/452ed253/attachment.html 


More information about the Qt-interest-old mailing list