PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 825 - Can't register a class using that uses metaclasses in QML using qmlRegisterType
: Can't register a class using that uses metaclasses in QML using qmlRegisterType
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtDeclarative
: 1.0.1
: Other Linux
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-04-12 17:03 EEST by Hugo Parente Lima
Modified: 2011-05-26 17:04 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Parente Lima 2011-04-12 17:03:07 EEST
Can't register a class using that uses metaclasses in QML using qmlRegisterType

Quoting from mailing list:

On Friday 08 April 2011 15:12:05 Ken Allen wrote:
> I recently tried to make creating QDeclarativeItem types with properties
> and such easier to write by using a metaclass. However, even though my
> metaclass inherited from Shiboken.ObjectType and called
> Shiboken.ObjectType.__new__ to do the real work registering the type with
> QtDeclarative.qmlRegisterType failed with 'A shiboken-based python type
> expected, got Meta' where Meta is the name of my metaclass.
Comment 1 Hugo Parente Lima 2011-05-05 22:15:19 EEST
Fixed in commit

pyside/206474a5a3e6ae7a6a36701a8f30d7ed73280546
Comment 2 renato filho 2011-05-26 17:04:01 EEST
PySide release 1.0.3