Hi Vladimír,

Yes, I'm interested! :-) Your example definitely looks like one that could be included in pyside-examples. Is it OK for you (and Thomas too!) if the code is licensed under the BSD license?

Cheers,

ma.

On 20.12.2010 17:22, ext Vladimír Jícha wrote:
Hi List,

If anyone's interested, please find attached my example of a
QAbstractListModel that is kept synchronized with a QML ListView.

I wrote the code by merging these two guides and examples:
http://developer.qt.nokia.com/wiki/Selectable_list_of_Python_objects_in_QML
and
http://blog.rburchell.com/2010/02/pyside-tutorial-model-view-programming_22.html


Best regards,
Vladimir

Dne 20.12.2010 12:16, Thomas Perl napsal(a):
Hi Vladimir,

2010/12/16 Vláďa<[email protected]>:
Please find an example of my solution for the problem in attachment. I'm
sorry for the comments, which are not always very clear, but part of the
code is still a "black box" for me. Also since English is not my native
language, some sentences may not make much sense.

What the example does is, that it shows a list of cars. If you click
one of
them, it will reduce the list so that it will only contain cars from the
same manufacturer as the one you clicked. If you have any questions,
do not
hesitate to ask.
Please feel free to share this example on the PySide mailing list, so
the PySide developers can merge this into pyside-examples :)

Thanks!
Thomas


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

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

Reply via email to