On Dienstag, 28. April 2009, Darryl Wallace wrote:
> Hello Detlev,
>
> Where abouts in eric4 do you do perform this "lazy" population?
UI/BrowserModel.py and Project/ProjectBrowserModel.py
> This
> interests me as I suffer from a similar table population slowdown.
>
> Thanks,
> Darryl
>
> Detl
Hello Detlev,
Where abouts in eric4 do you do perform this "lazy" population? This
interests me as I suffer from a similar table population slowdown.
Thanks,
Darryl
Detlev Offenbach wrote:
Another solution would be to do lazy population of the model. That is, if
child items are to be shown,
I suggest you read over http://doc.trolltech.com/4.5/qthread.html, and while
the examples are in C++ don't look too much into the syntax differences but
rather what it's doing.
Although I haven't used QThread before, I have used python's threading
classes. My understanding is that you create a QT
Another solution would be to do lazy population of the model. That is, if
child items are to be shown, fetch them at that time. This avoids populating
the model in advance and is more responsive. See eric4 as an example.
Detlev
On Montag, 27. April 2009, Demetrius Cassidy wrote:
> How many item
How many items do you need to populate in your model class? Unless you are
populating a view with thousands of items, I do not suggest threads at all
since they can be dangerous if you do not know how to use them.
If you absolutely needed to do this, my approach would be to have some sort
of met
I've been reading on qtcentre that it is possible to populate a model from a separate qthread in order to prevent a program from freezing before it loads, however the example code I have seen is a bit too much involved (and in c++) for me to comprehend. I was wondering if anyone knew of a pyqt