Advanced Rich Text Processing | Qt GUI 5.15.19 (original) (raw)

Handling Large Files

Qt does not limit the size of files that are used for text processing. In most cases, this will not present a problem. For especially large files, however, you might experience that your application will become unresponsive or that you will run out of memory. The size of the files you can load depends on your hardware and on Qt's and your own application's implementation.

If you are faced with this problem, we recommend that you address the following issues:

We give an example of the latter technique from the list. We assume that the text edit is visible.

textEdit.show();

textCursor.beginEditBlock();

for (int i = 0; i < 1000; ++i) { textCursor.insertBlock(); textCursor.insertText(paragraphText.at(i)); }

textCursor.endEditBlock();

Common Rich Text Editing Tasks Supported HTML Subset

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.