Hi,

there is some strangeness inside you code (at least for me...). I still can say: use utf8 since Qt use that codec. Make sure you have configured Qt Creator to use utf8!
Also QTextCodec was not used correct:
Qt Code:
  1. void MainReader::on_pushButton_clicked()
  2. {
  3. QFile file(ui->lineEdit->text());
  4. if(file.open(QIODevice::ReadOnly | QIODevice::Text))
  5. {
  6. QTextStream in(&file);
  7. in.setCodec("Windows-1255");
  8. QString line = in.readAll();
  9. ui->textEdit->append(line);
  10. }
  11. }
  12.  
  13. void MainReader::on_pushButton_2_clicked()
  14. {
  15. ui->textEdit->append(trUtf8("נסיון"));
  16. }
To copy to clipboard, switch view to plain text mode 

and with the button no problem at all. And as a further suggestion: Have a look at the layout mechanism. QHBoxLayout etc.