[PyQt] QAbstractListModel & QMl ListView: Invisible Items

Phil Thompson phil at riverbankcomputing.com
Mon Feb 23 21:57:45 GMT 2015


On 23/02/2015 8:17 pm, Jonas Schürmann wrote:
> Thanks for the feedback!
> 
> Unfortunately I forgot to tell my current setup in my last email.
> I am running Arch Linux, Python 3.4.2, Qt/PyQt 5.4.
> 
> I just installed Ubuntu on a virtual machine to test the code on a 
> clean
> system and I am running into the exact same issue. The versions are 
> here
> Python 3.4.2, Qt/PyQt 5.3
> 
> I always installed the packages from the official repositories, on my 
> Arch box
> and on Ubuntu.
> 
> Do you run different versions of Python/Qt?
> 
> Cheers,
> Jonas

I'm using current snapshots on OS X.

Phil

> Am Montag, 23. Februar 2015, 14:24:07 schrieb Phil Thompson:
>> On 16/02/2015 7:54 pm, Jonas Schürmann wrote:
>> > Hello,
>> >
>> > I got a really strange problem and I don't know how to tackle it.
>> >
>> > What I'm trying to archive is simple: Using a subclassed
>> > QAbstractListModel to
>> > provide data to a QML ListView.
>> >
>> > The problem is, that only the first item in the ListView is visible,
>> > all the
>> > other items are there and take up space (I can scroll down the list),
>> > but they
>> > are not visible.
>> > You can find a WebM of the behaviour I got here: [1]
>> >
>> > I have no idea how this can happen, to me it looks like a bug in PyQt.
>> >
>> > I'm attaching the two source files that reproduce the error for me.
>> > If somebody else could reproduce the bug or give me some pointers how
>> > this can
>> > happen, I would be very glad.
>> >
>> > Regards,
>> > Jonas Schürmann
>> >
>> > [1] http://gfycat.com/OffensiveShinyHagfish
>> 
>> Works fine for me.
>> 
>> Phil
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt


More information about the PyQt mailing list