Hi, <br><br>I would like to use pyqtProperty with a python class that I have defined. example<br><br>class Vec2(QObject):<br> pass<br><br>....<br><br>class Toto(QObject)<br><br> def getPos(self):<br> return self.__x<br>
<br> def setPos(self, x)<br> self.__x = x <br><br> pyqtProperty('Vec2', fget=getPos, fset=setPos)<br><br><br>and i get the following error message : <br>type 'Vec2' is not supported as a property type<br>
<br>I think I have to register a QMetaType but it seems impossible in PyQt. <br><br>Have you an idea on how I could achieve this. <br><br>Thanks<br><br>Julien<br>