Thanks a million for the reply. But before I saw your reply, I found another way to do it in a different post and came up with this:
Qt Code:
  1. void addComment::enterComment()
  2. {
  3. QDateTime dt = QDateTime::currentDateTime();
  4. QString todaysDateTimeString = dt.toString();
  5.  
  6. QString commentText = commentTextEdit->toHtml();
  7.  
  8. ((nnDBSMainWindow*)parent())->ui.textEdit->insertPlainText(todaysDateTimeString);
  9. ((nnDBSMainWindow*)parent())->ui.textEdit->insertPlainText("\n");
  10. ((nnDBSMainWindow*)parent())->ui.textEdit->insertHtml(commentText);
  11. ((nnDBSMainWindow*)parent())->ui.textEdit->insertPlainText("\n******************************");
  12. ((nnDBSMainWindow*)parent())->ui.textEdit->insertPlainText("\n");
  13. ((nnDBSMainWindow*)parent())->ui.addCommentPB->setEnabled(true);
  14. }
To copy to clipboard, switch view to plain text mode 
I know it might be like reaching over my shoulder to scratch my butt, but it gets the job done. Efficiency will be the next step.