I would like to implement the IPF command "eparml" in my document viewer. The "eparml" is, in fact, a "bulletted" text, where bullets are (different) texts. The result should be something like this:

Qt Code:
  1. Some tag Tag text, can span several lines and it
  2. should be aligned this way.
  3. Can also contain line and paragraph breaks.
  4.  
  5. Another tag Another tag text.
  6. Next line. etc.
To copy to clipboard, switch view to plain text mode 

The "tag column" has fixed size, the "data column" is expandable. I have implemented this way:

Qt Code:
  1. QTextOption::Tab newtab;
  2. int NewMargin = CurrentMargin + TagColumnSize;
  3.  
  4. setTextMargin(newmargin);
  5. setTextIndent(-TagColumnSize);
  6.  
  7. newtab.position = TagColumnSize;
  8. newtab.type = TextOption::LeftTab;
  9.  
  10. <replace tabs with newtab>
To copy to clipboard, switch view to plain text mode 

Write the tag, make TAB, write data. This works perfectly but it clobbers TAB settings. I would like a solution that preserves TAB settings. In other words, I need to emulate a TAB without issuing setTabPositions(). Is there a way how to do it?