Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 9

Qt-interest Archive, March 2002
Fw: VERY SLOW !! qtable !


Message 1 in thread

> Qt writes somewhere that its QTable class can be used for HUGE tables (
1mio
> entries etc.)
>
> But juts filling a table with 180 lines and 10 cols takes abt. 30 seconds
> and the whole table is flickering while being filled. What a fu&*(. !
> Is there any technique to speed up things ?? This turtle stuff is
> unacceptable !
>
> Joe
>
>


Message 2 in thread

Hi,

I've had lots of problems with large QTables in the past and I've
discovered that a huge slowdown occurs when setting row and column
labels.  I do this on the fly now, which has greatly improved
performance.

I don't know how QTable performs if you're setting the data with
setText(), but I have had good performance with overloading 
QTable::item() and using my own underlying objects.  I create tables
that have almost 100 million cells with almost no slowdown.

On Mon, Mar 25, 2002 at 05:43:25PM -0300, Joe Robe wrote:
> Qt writes somewhere that its QTable class can be used for HUGE tables (
> 1mio
> entries etc.)
>
> But juts filling a table with 180 lines and 10 cols takes abt. 30 seconds
> and the whole table is flickering while being filled. What a fu&*(. !
> Is there any technique to speed up things ?? This turtle stuff is
> unacceptable !
>
> Joe


Message 3 in thread

Dnia pon 25. marzec 2002 21:43, napisałeś:
> > Qt writes somewhere that its QTable class can be used for HUGE tables (
>
> 1mio
>
> > entries etc.)
> >
> > But juts filling a table with 180 lines and 10 cols takes abt. 30 seconds
> > and the whole table is flickering while being filled. What a fu&*(. !
> > Is there any technique to speed up things ?? This turtle stuff is
> > unacceptable !
> >
> > Joe

void QWidget::setUpdatesEnabled ( bool enable ) [virtual slot]

Maybe you'll use this:

	QTable* table = new ...

	table->setUpdatesEnabled( false );
	...
	// inserting many rows
	...
	table->setUpdatesEnabled( true );

-- 
 [ signature omitted ] 

Message 4 in thread

Hope your not calling setNumRows before you add each table row...This
deletes all internal memory and reallocates it, first set num rows, then
fill the table.
-Phil



> Qt writes somewhere that its QTable class can be used for HUGE tables (
1mio
> entries etc.)
>
> But juts filling a table with 180 lines and 10 cols takes abt. 30 seconds
> and the whole table is flickering while being filled. What a fu&*(. !
> Is there any technique to speed up things ?? This turtle stuff is
> unacceptable !
>
> Joe
>
>

--
 [ signature omitted ] 

Message 5 in thread

Ahhh, well thats what I am doing, thanks for all the other hints too... Will
see what comes up now !

Joe

----- Original Message -----
From: "Philip Dicke" <Philip.Dicke@raytheon.com>
To: <joer00@bellsouth.net>; <qt-interest@trolltech.com>
Sent: Monday, March 25, 2002 6:37 PM
Subject: Re: Fw: VERY SLOW !! qtable !


>
> Hope your not calling setNumRows before you add each table row...This
> deletes all internal memory and reallocates it, first set num rows, then
> fill the table.
> -Phil
>
>
>
> > Qt writes somewhere that its QTable class can be used for HUGE tables (
> 1mio
> > entries etc.)
> >
> > But juts filling a table with 180 lines and 10 cols takes abt. 30
seconds
> > and the whole table is flickering while being filled. What a fu&*(. !
> > Is there any technique to speed up things ?? This turtle stuff is
> > unacceptable !
> >
> > Joe
> >
> >
>
> --
> List archive and information: http://qt-interest.trolltech.com
>
>
>
>