![]() |
Home · Examples |
[Previous: Common Rich Text Editing Tasks][Rich Text Processing][Next: Supported HTML Subset]
If you are faced with this problem, we recommend that you address the following issues: 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.
We give an example of the latter technique in 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();
Copyright © 2008 Trolltech
Trademarks