[PyQt] model test

2012-12-14 Thread José M . Rodriguez Bacallao
I have developed my own tree model to show the structure of dicom studies.
I would like to pass my model through something like a class like ModelTest
from qt4, there is something like this that works with pyqt4?


I have tested the modeltest that came with pyqt4 in my Archlinux
installation (4.9.5) but it doesn't seen to work. Any suggestions?


PS: I am using API v2 for QVariant and QString and python 2.7
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] model test

2012-12-14 Thread Wolfgang Rohdewald
On Friday 14 December 2012 08:38:37 José M. Rodriguez Bacallao wrote:
 I have tested the modeltest that came with pyqt4 in my Archlinux
 installation (4.9.5) but it doesn't seen to work. Any suggestions?

there are several versions floating around.

one of them (IMHO the best maintaned one) is part of the kajongg game

git clone git://anongit.kde.org/kajongg

if you start it with

--debug=modelTest

all model usage will go thru modeltest

-- 
Wolfgang
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] model test

2012-12-14 Thread José M . Rodriguez Bacallao
I downloaded and put it in my test but this model test is made for API v1
not API v2, my model use API v2 for QVariant, any suggestions?

On Fri, Dec 14, 2012 at 9:05 AM, Wolfgang Rohdewald
wolfg...@rohdewald.dewrote:

 --debug=modelTest
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] model test

2012-12-14 Thread Wolfgang Rohdewald
On Friday 14 December 2012 11:10:51 José M. Rodriguez Bacallao wrote:
 I downloaded and put it in my test but this model test is made for API v1
 not API v2, my model use API v2 for QVariant, any suggestions?

last time I tried I was not able to make the conversion to v2 because
PyKDE4 produced segfaults with v2. The bug report is still open. But
when that is fixed, I will certainly try again, including modeltest.
https://bugs.kde.org/show_bug.cgi?id=253123

-- 
Wolfgang
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt