The "wasting resources" refers to code like this
te1=ui->textEdit;
te1=new QTextEdit;
te1=ui->textEdit;
To copy to clipboard, switch view to plain text mode
Here you create a QTextEdit and immediately lose its pointer by assigning another text edit's pointer to the variable.
Just
te1=ui->textEdit;
te1=ui->textEdit;
To copy to clipboard, switch view to plain text mode
or replace all usages of
te1->
te1->
To copy to clipboard, switch view to plain text mode
with
ui->textEdit->
ui->textEdit->
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks