March 15, 2011

Deqing Deqing
Lab Rat
29 posts

What does “block” mean in QTextCursor?

 

Is it a word, a sentence, or a paragraph?

I noticed that the document says QTextCursor::block() returns “the block that contains the cursor”, but I’m not sure what does “block” mean here.

3 replies

March 15, 2011

Andre Andre
Robot Herder
6296 posts

Well, it obviously refers to a QTextBlock, the type returned by that method. And a QTextBlock

encapsulates a block or paragraph of text in a QTextDocument.

according to the documentation.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

March 15, 2011

unclewerner unclewerner
Lab Rat
141 posts

It is a paragraph.

March 16, 2011

Deqing Deqing
Lab Rat
29 posts

Thank you both :)

 
  ‹‹ [Solved] Using value inside QSliders to calculate and out put result problem      Using 3d models (.obj) AND materials (.mtl) in an opengl application ››

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