Hi,

I would like to use pyqtProperty with a python class that I have defined.
example

class Vec2(QObject):
  pass

....

class Toto(QObject)

  def getPos(self):
    return self.__x

  def setPos(self, x)
    self.__x = x

  pyqtProperty('Vec2', fget=getPos, fset=setPos)


and i get the following error message :
type 'Vec2' is not supported as a property type

I think I have to register a QMetaType but it seems impossible in PyQt.

Have you an idea on how I could achieve this.

Thanks

Julien
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to