February 18, 2012

nekkro-kvlt nekkro-kvlt
Lab Rat
4 posts

QSyntaxHighligher and QTextBlockUserData storage

 

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 :)

0 replies

 
  ‹‹ How to track pointer when is passing trough a button?      How do I do qobject2variant in a nested QObject container? ››

You must log in to post a reply. Not a member yet? Register here!