Re: [PyQt] faster alternative to QHeaderView's resizeToContents?

2009-05-09 Thread Demetrius Cassidy
Are you calling resizeToContents for each item in your table? Sent from my iPhone On May 9, 2009, at 3:28 AM, Edwin Marshall wrote: I have a QTableView that displays the contents of a model with over 3000 rows, each with 11 columns. I'd like to the original size of these columns to be no l

[PyQt] faster alternative to QHeaderView's resizeToContents?

2009-05-09 Thread Edwin Marshall
Ah, so basically you call fetchMore with a value of 20, then afterwards do a fetchMore with the rest of the data? Seems like a good idea. The only thing I'd be worried about is that filtering woul be inaccurate until the model had a chance to calculate the widths for the rest of it's data. I cou

[PyQt] RE: Re: faster alternative to QHeaderView's resizeToContents?

2009-05-09 Thread Edwin Marshall
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 sorti

[PyQt] Re: faster alternative to QHeaderView's resizeToContents?

2009-05-09 Thread Erik Janssens
I've had similar issues. One possibility I tried was first only loading 20 rows in the table, then do the resizeToContents and only then loading the full data. That way, the columns are layout to fit those 20 rows. It works well overall, but I later have just set all the column widths accordin

[PyQt] Re: Bindings for Qxt?

2009-05-09 Thread Benjamin Wohlwend
Hi, On Sun, May 3, 2009 at 6:14 PM, Benjamin Wohlwend wrote: > > Turns out SIP is so great that even a C++ newbie like me is able to > use it. I was able to write a SIP binding for QxtFlowView. It builds > and installs cleanly, so I guess it will work, but I had no time to > test it yet. > I'll

Re: [PyQt] faster alternative to QHeaderView's resizeToContents?

2009-05-09 Thread İşbaran Akçayır
On Sat, May 9, 2009 at 11:33 AM, Glenn Linderman wrote: > On approximately 5/9/2009 12:28 AM, came the following characters from the > keyboard of Edwin Marshall: >> >> I have a QTableView that displays the contents of a model with over 3000 >> rows, each with 11 columns. I'd like to the original

Re: [PyQt] faster alternative to QHeaderView's resizeToContents?

2009-05-09 Thread Glenn Linderman
On approximately 5/9/2009 12:28 AM, came the following characters from the keyboard of Edwin Marshall: I have a QTableView that displays the contents of a model with over 3000 rows, each with 11 columns. I'd like to the original size of these columns to be no larger than the content within them,

[PyQt] faster alternative to QHeaderView's resizeToContents?

2009-05-09 Thread Edwin Marshall
I have a QTableView that displays the contents of a model with over 3000 rows, each with 11 columns. I'd like to the original size of these columns to be no larger than the content within them, but setting their resizeMode's to QHeaderView.resizeToContents causes the tremendous slow downs (wher

[PyQt] faster alternative to QHeaderView's resizeToContents?

2009-05-09 Thread Edwin Marshall
I have a QTableView that displays the contents of a model with over 3000 rows, each with 11 columns. I'd like to the original size of these columns to be no larger than the content within them, but setting their resizeMode's to QHeaderView.resizeToContents causes the tremendous slow downs (wher