Qt Code:
  1. QFile file(fileName);
  2. file.open(QIODevice::WriteOnly);
  3. QDataStream out(&file);
  4. QApplication::setOverrideCursor(Qt::WaitCursor);
  5. out << "TESTING";
  6. QApplication::restoreOverrideCursor();
  7. file.close();
To copy to clipboard, switch view to plain text mode 

after i run above code the text file bcome
untitled.JPG

pls help me slove this problem...
thx