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(&#39;Vec2&#39;, fget=getPos, fset=setPos)<br><br><br>and i get the following error message : <br>type &#39;Vec2&#39; 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>