[Qt-interest] QPlainTextEdit and files larger than 1G

Thiago Macieira thiago at kde.org
Wed Oct 28 18:37:20 CET 2009


Em Quarta-feira 28 Outubro 2009, às 17:51:22, você escreveu:
> Also, I wonder how "kate" handles this since "kate" seems not to have any
>  problems reading the file and scrolling thorugh it. 

Kate has its own paging code. It reads chunks of the file and may save the 
processed data to disk. It doesn't try to keep the entire Unicode decoding of 
the file in memory, much less the entire rendered data.

That's the kind of stuff that QPlainTextEdit does not have. It was never meant 
to be used with huge files.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091028/5cd6abed/attachment.bin 


More information about the Qt-interest-old mailing list