işbaran, I'm positive that resizeToConents is causing the slowdown, because 
when I comment out the line, performance returns to an acceptable speed. As for 
QSortFilterProxyModel, I was originally using it and it indeed caused slowdowns 
as well. As such, I decided to remove it and implement sorting and filtering 
directly in the base model, which has worked wonders.

Glenn, I'll give it a shot. 

I think QFontMetrics will help me implement my idea earlier about calculating 
the width of the largest item in a column. If Glenn's idea doesn't work, I'll 
be trying this out and will report back results.

Thanks everyone.

--Edwin Marshall

> -----Original Message-----
> From: [email protected]
> Sent: Sat, 9 May 2009 09:53:49 +0100
> To: [email protected]
> Subject: PyQt Digest, Vol 58, Issue 13
> 
> Send PyQt mailing list submissions to
>       [email protected]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> or, via email, send a message with subject or body 'help' to
>       [email protected]
> 
> You can reach the person managing the list at
>       [email protected]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PyQt digest..."
> Today's Topics:
> 
>    1. pyuic4 and QTreeWidget bug? (Arkadiusz Wahlig)
>    2. FetchMore Example (Darryl Wallace)
>    3. Re: FetchMore Example (projetmbc)
>    4. faster alternative to QHeaderView's resizeToContents?
>       (Edwin Marshall)
>    5. faster alternative to QHeaderView's resizeToContents?
>       (Edwin Marshall)
>    6. Re: faster alternative to QHeaderView's resizeToContents?
>       (Glenn Linderman)
>    7. Re: faster alternative to QHeaderView's resizeToContents?
>       (??baran Ak?ay?r)
>    8. Re: Bindings for Qxt? (Benjamin Wohlwend)
> _______________________________________________
> PyQt mailing list
> [email protected]
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to