QTextCursor is a class in the Qt library for C++ programming language. It provides a way to access and manipulate text in a QTextDocument object. The blockFormat property of QTextCursor allows modifying the formatting of a block of text within a document.
This example uses QTextCursor to access the current block of text in a QTextEdit object and sets its alignment to right using the blockFormat property. The package library used is Qt.
This example sets the background color of the current block of text to lightgreen using the blockFormat property of QTextCursor. The package library used is again Qt.
C++ (Cpp) QTextCursor::blockFormat - 22 examples found. These are the top rated real world C++ (Cpp) examples of QTextCursor::blockFormat extracted from open source projects. You can rate examples to help us improve the quality of examples.