Hello all! I need to create QTextEdit with document template like this:



Qt Code:
  1. *** HEADER LINE ***
  2. text block 1
  3. *** HEADER LINE 2 ***
  4. text block 2
To copy to clipboard, switch view to plain text mode 

Header lines must be readonly, not selectable, not deletable and must be created by default on widget creation. contents of text blocks between header lines must be available outside of widget for each block.

Is it possible to create this?