[PyQt] RE: Re: faster alternative to QHeaderView's resizeToContents?
Edwin Marshall
aspidites at inbox.com
Sat May 9 19:54:36 BST 2009
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: pyqt-request at riverbankcomputing.com
> Sent: Sat, 9 May 2009 09:53:49 +0100
> To: pyqt at riverbankcomputing.com
> Subject: PyQt Digest, Vol 58, Issue 13
>
> Send PyQt mailing list submissions to
> pyqt at riverbankcomputing.com
>
> 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
> pyqt-request at riverbankcomputing.com
>
> You can reach the person managing the list at
> pyqt-owner at riverbankcomputing.com
>
> 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
> PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list