Use:
Qt Code:
  1. msgLogView->setSelectionMode(QAbstractItemView::MultiSelection);
To copy to clipboard, switch view to plain text mode