[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] abstractitemmodel (from examples\quick\models\) is not running
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2016-03-24 14:11:46
Message-ID: AF6630F1-78AB-4415-AD9D-0826C989E69E () riverbankcomputing ! com
[Download RAW message or body]

On 20 Mar 2016, at 9:48 am, Daniel Krause <madakr@web.de> wrote:
> 
> Hi,
> 
> I have been looking into the qml-model-examles provided with pyqt \
> (Python34\Lib\site-packages\PyQt5\examples\quick\models\). Objectlistmodel and \
> Stringlistmodel I can run and view (the windows are created). 
> But abstractitemmodel does not open any window \
> (Python34\Lib\site-packages\PyQt5\examples\quick\models\abstractitemmodel\abstractitemmodel.py).
>  
> I added some print()-statements, on my PC the script does not reach the \
> print(view.show) statement. 
> > > > 
> RESTART: C:\Python34\Lib\site-packages\PyQt5\examples\quick\models\abstractitemmodel\abstractitemmodel.py \
>  AnimalModel
> Animal
> addAnimal
> rowCount
> rowCount
> rowCount
> view
> context
> view.source
> rowCount
> roleNames
> 
> 
> Could someone else please check, if abstractitemmodel is running somewhere else?
> Any ideas, why it is not working on my machine?

It's a bug. Change the strings in the _roles dict to be bytes objects.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic