Hi

PySide finally supports the qmlRegisterType function! So now you are able to 
export Python types to QML and use them :-)

I ported a QML tutorial to show how to export a Python type to QML, you can 
find it on PySide examples repository.

http://qt.gitorious.org/pyside/pyside-
examples/trees/master/examples/declarative/extending

There are just one limitation in the current implementation, you can export 
only 50 Python types to QML and the only way to avoid this is patching Qt, we 
plan to propose a patch to the Qt guys soon, probably after the 1.0 release as 
the current implementation already works and IMO is better to work on bug 
fixing before the 1.0 release.

The only missing part for full QML support now is the QDeclarativeListProperty 
class, this class is the way QML uses to export list properties to QML and we 
plan to implement it this sprint starting Monday.

All this stuff will be present in beta2 to be released soon, so if you want a 
good support to QML on PySide, install everything from git, find bugs and we 
can try to release the version 1.0 with all fixed :-)

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to