[PyQt] pyqtproperty with a user type

Phil Thompson phil at riverbankcomputing.com
Wed May 20 13:22:22 BST 2009


On Wed, 20 May 2009 14:15:22 +0200, cabieces julien <jcabieces at free.fr>
wrote:
> I need my property to be typed (Vec2 in my example) so pythonproperty
would
> not help.

Why not check the type in the setter?

> in PyQt there is no way to define a new MetaType?

No - it's template based.

Phil


More information about the PyQt mailing list