[PySide] How to provide data from PySide QAbstractListModel subclass to QML ListView?

252 views
Skip to first unread message

Jon Middleton

unread,
Oct 27, 2010, 3:09:39 PM10/27/10
to pys...@lists.openbossa.org
Hi,

What I would like to be able to do is pass a list of simple QObject's
or equivalent to a QML ListView from python.
I have attempted to use QAbstractListModel, but have not had much
luck, another pySide user appears to be having the same issue and has
posted this on Stackoverflow:
http://stackoverflow.com/questions/4013615/how-to-provide-data-from-pyside-qabstractitemmodel-subclass-to-qml-listview

I have also created a set of tests and uploaded them here:
http://www.syrris-support.com/Downloads/JMM/pyside_qml_tests.zip

Any help will be great

Thanks,

Jon
_______________________________________________
PySide mailing list
PyS...@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Renato Araujo Oliveira Filho

unread,
Oct 27, 2010, 3:32:43 PM10/27/10
to Jon Middleton, pys...@lists.openbossa.org
Hi Jon,

you can check this example on this bug (we will move this example to
PySide examples soon), this work fine with PySide.

Thanks

--
Renato Araujo Oliveira Filho
Instituto Nokia de Tecnologia - INdT
Mobile: +55 (81) 8704-2144

velociraptor Genjix

unread,
Oct 27, 2010, 4:12:14 PM10/27/10
to pys...@lists.openbossa.org

Hey,
For some reason PySide isn't finding my Python header which exists http://pastebin.com/hRVzuxnN  I have no idea around cmake so I don't know how to fix it (I researched on the net but the PySide CMakeLists.txt looks really dense to me). Can someone fix this so I can re-pull and build? :) I assume it's a simple one-liner that got mistakenly deleted or something
I re-worded the build tutorial since eventhough I speak English natively, it was very hard to read and verbose:
http://developer.qt.nokia.com/wiki/Building_PySide_on_Linux
Especially if you're new to PySide (like me).
cya

Anderson Lizardo

unread,
Oct 28, 2010, 7:00:20 AM10/28/10
to velociraptor Genjix, pys...@lists.openbossa.org
On Wed, Oct 27, 2010 at 4:12 PM, velociraptor Genjix
<aph...@hotmail.com> wrote:
>
> Hey,
> For some reason PySide isn't finding my Python header which exists http://pastebin.com/hRVzuxnN  I have no idea around cmake so I don't know how to fix it (I researched on the net but the PySide CMakeLists.txt looks really dense to me). Can someone fix this so I can re-pull and build? :) I assume it's a simple one-liner that got mistakenly deleted or something

Can you get a verbose make output? To do that, use "make VERBOSE=1"
instead of just "make". This will show the full gcc flags.

Regards,
--
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil

Hugo Parente Lima

unread,
Oct 28, 2010, 9:01:14 AM10/28/10
to pys...@lists.openbossa.org
On Thursday 28 October 2010 09:00:20 Anderson Lizardo wrote:
> On Wed, Oct 27, 2010 at 4:12 PM, velociraptor Genjix
>
> <aph...@hotmail.com> wrote:
> > Hey,
> > For some reason PySide isn't finding my Python header which
> > exists http://pastebin.com/hRVzuxnN I have no idea around cmake so I
> > don't know how to fix it (I researched on the net but the PySide
> > CMakeLists.txt looks really dense to me). Can someone fix this so I can
> > re-pull and build? :) I assume it's a simple one-liner that got
> > mistakenly deleted or something

Did you get the last shiboken too?



> Can you get a verbose make output? To do that, use "make VERBOSE=1"
> instead of just "make". This will show the full gcc flags.
>
> Regards,

--
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

signature.asc
Reply all
Reply to author
Forward
0 new messages