Quote Originally Posted by yagabey View Post
Thank you jpn, i ve been looking for that..!
you can use
Qt Code:
  1. txtScrollEdit->setWordWrapMode (QTextOption::NoWrap); //txtScrollEdit is QTextEdit object
To copy to clipboard, switch view to plain text mode 
before the
Qt Code:
  1. scrItem->setDocument(txtScrollEdit->document());
  2. scrItem->setTextWidth(-1);
To copy to clipboard, switch view to plain text mode 
.
It sets the document in one line.