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

David Ching dc at remove-this.dcsoft.com
Wed Nov 25 23:34:56 CET 2009


"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






More information about the Qt-interest-old mailing list