Line 8 is tricky. You'd better specify the encoding it comes from:

Qt Code:
  1. QString dane = QString::fromUtf8("Ę Ã“ Ą Ś Ł Ż Ź Ć Ń ę ó ą ś ł ż ź ć ");
To copy to clipboard, switch view to plain text mode 

If the source file is utf-8 encoded of course.