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

Qt-interest Archive, February 2007
[Q] Why is QStackedWidget so slow


Message 1 in thread

All,

I am using a QStackedWidget to display information on various pages. I
have about 26 stack pages. At about 15 or so I notice that in designer
and in my application, it begin to slow down. Why?? The various page a
loaded with other widget to display information.
Thanks
Robert

Message 2 in thread

Oaks, Robert wrote:
>
> I am using a QStackedWidget to display information on various pages. I 
> have about 26 stack pages. At about 15 or so I notice that in designer 
> and in my application, it begin to slow down. Why?? The various page a 
> loaded with other widget to display information.
>

I've noticed this too. It doesn't seem to be dependent on the number of 
pages, but rather the number of widgets on each page. In Qt3 it was 
lightning fast, but in Qt4, it got much slower, so much so in fact that 
even my 3.4GHz high-end machine can't cope.

--Dave

--
 [ signature omitted ] 

Message 3 in thread

On 16.02.07 13:49:32, Oaks, Robert wrote:
> I am using a QStackedWidget to display information on various pages. I
> have about 26 stack pages. At about 15 or so I notice that in designer
> and in my application, it begin to slow down. Why?? The various page a
> loaded with other widget to display information.

It would help if you can create a small compilable example.

Is the switch from one widget to another slow, do you have painting
errors, does the app hang?

Andreas

-- 
 [ signature omitted ]