Qt Code:
  1. QTextCursor cu(textCursor());
  2.  
  3. aux.setIndent(1);
  4. cu.insertBlock();
  5. cu.mergeBlockFormat(aux);
  6. cu.insertText("blah blah blah");
To copy to clipboard, switch view to plain text mode 
This "works" but the indent is unacceptably huge Even if the setIndent() argument is the smallest possible (the call has an int argument). Setting bigger indents shifts the text out of the editor window soon. Can someone more experienced verify it and evaluate, whether it is really a bug?

Note that other similar calls (setting margins, setTextIndent() ) have qreal arguments and behave much better. Replacing setIndent() by setLeftMargin() fixes the problem - but I wanted the text indented, not the block displaced.