[Qt-interest] QVBoxLayout with 100s of items is hanging

Qt Quest qt.quest at yahoo.com
Thu Nov 26 13:28:42 CET 2009


One more thing that I want to note is that on the screen only about 30 lines are being shown in the scrollable layout. Maybe it is possible to defer the computations until the items are actually shown when the layout is scrolled down?

Maybe it is possible to hasten the display of the layout using fixed sizes?
Is this slow performance the destiny of every application with that much of GUI controls?
Thank you!




________________________________
From: David Ching <dc at remove-this.dcsoft.com>
To: qt-interest at trolltech.com
Sent: Thu, November 26, 2009 12:34:56 AM
Subject: Re: [Qt-interest] QVBoxLayout with 100s of items is hanging

"Qt Quest" <qt.quest at yahoo.com> wrote in message 
news:535032.46988.qm at web114003.mail.gq1.yahoo.com...
> Hi all,
>
> I'm using QT 4.5.0 to develop a GUI application, which needs to display 
> houndreds and
> sometimes thousands of text lines inside a QVBoxLayout. Each line is 
> QHBoxLayout with
> a rich text label. After show() is called on that window a flow of event 
> start that takes
>  *10s of seconds* until it is drawn.
>

I don't know the layout internals, but am not surprised they have 
performance issues with so many items.  I don't think a layout was designed 
for this.  Have you considered using a read-only QTextEdit to hold all these 
rich-text lines?

-- David



_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091126/4c64726b/attachment.html 


More information about the Qt-interest-old mailing list