how (and when) do u add text?

try simple example
in QTextEdit's constructor write only
Qt Code:
  1. setTabStopWidth(..);
  2. setPlainText("text\ttext");
To copy to clipboard, switch view to plain text mode 

it work?