PDA

View Full Version : QSyntaxHighligher and QTextBlockUserData storage and calls



nekkro-kvlt
18th February 2012, 16:18
Hi all,

I wanted to know how are the QSyntaxHighligher and QTextBlockUserData classes working. Basically, is the text highlighted when it is displayed, or is it highlighted for the whole document and stored in memory ? If I store data in the block, is the data kept if the block is not visible ?
I'm working on a project where I may have to open large files, with a lot of formatting and custom data, so to save memory I want to know if I can use these classes "as-is", or if I need to make some custom implementation.

Thanks in advance :)

wysota
19th February 2012, 12:46
the data object is kept in the document thus it remains valid regardless if a particular block is displayed or not.