Results 1 to 2 of 2

Thread: QSyntaxHighligher and QTextBlockUserData storage and calls

  1. #1
    Join Date
    Feb 2012
    Posts
    10
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QSyntaxHighligher and QTextBlockUserData storage and calls

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSyntaxHighligher and QTextBlockUserData storage and calls

    the data object is kept in the document thus it remains valid regardless if a particular block is displayed or not.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. How to use QTextBlockUserData?
    By FinderCheng in forum Qt Programming
    Replies: 0
    Last Post: 28th December 2010, 01:51
  2. QSyntaxHighligher with QTextEdit
    By dennis in forum Newbie
    Replies: 5
    Last Post: 8th June 2010, 19:46
  3. Storage and View -> imageViewer
    By C167 in forum Qt Programming
    Replies: 15
    Last Post: 22nd January 2008, 14:43
  4. blocks, storage and objects
    By mickey in forum General Programming
    Replies: 6
    Last Post: 6th December 2007, 17:55
  5. What is the format of QByteArray's storage?
    By LiCodeX in forum Newbie
    Replies: 4
    Last Post: 31st October 2007, 09:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.