[PyQt] QAbstractListModel & QMl ListView: Invisible Items

Phil Thompson phil at riverbankcomputing.com
Mon Feb 23 14:24:07 GMT 2015


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


More information about the PyQt mailing list