QTextBlockFormat blockFormat; blockFormat.setAlignment(Qt::AlignmentFlag::AlignCenter);
QTextBlockFormat blockFormat; blockFormat.setIndent(4);
QTextBlockFormat blockFormat; blockFormat.setLineHeight(150, QTextBlockFormat::ProportionalHeight);These examples demonstrate some of the capabilities of QTextBlockFormat in formatting a single block of text in a Qt application. This class is part of the Qt GUI library.