@ts66 this is my mistake (i forgot to delete the type there), so as you figure in out the correct line is supposed to be:
Qt Code:
  1. textfield = new QTextEdit(); //textfield is declared as a class member in the header file, here we just use it - don't re-declare it
To copy to clipboard, switch view to plain text mode