Results 1 to 3 of 3

Thread: What is the block size for setMaximumBlockCount()

  1. #1
    Join Date
    Jun 2006
    Posts
    64
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default What is the block size for setMaximumBlockCount()

    G'Day,

    Can any one tell me the size of a block in QTextDocument::setMaximumBlockCount()? I understand what it does but I have yet been able to find the definition of a "block". One answer I found suggested it was all the characters upto a newline. I haven't been able to confirm or deny that.

    Any thoughts would be appreciated.

    Regards, B1.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: What is the block size for setMaximumBlockCount()

    There is no "block size" this is not a disk sector or tape block. The blocks it is referring to are QTextBlocks and represent the concept of a 'paragraph'. The general structure of a QTextDocument is described here.

  3. The following user says thank you to ChrisW67 for this useful post:

    b1 (23rd August 2012)

  4. #3
    Join Date
    Jun 2006
    Posts
    64
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What is the block size for setMaximumBlockCount()

    Thank you ChrisW67,

    That looks exactly what I need to read.

    Thanks again ChrisW67.

    Regards, B1.

Similar Threads

  1. Block the plainTextEdit
    By NewLegend in forum Newbie
    Replies: 6
    Last Post: 16th September 2010, 14:56
  2. waitForConnected does not block
    By kovica in forum Newbie
    Replies: 1
    Last Post: 13th May 2010, 09:51
  3. Block for interactions
    By mpi in forum Qt Programming
    Replies: 1
    Last Post: 30th October 2009, 09:32
  4. How to block keyPressEvent ?
    By richardander in forum Qt Programming
    Replies: 1
    Last Post: 24th January 2009, 09:14
  5. New kid on the block
    By wysota in forum General Discussion
    Replies: 2
    Last Post: 4th May 2008, 20:59

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
  •  
Qt is a trademark of The Qt Company.