Won't this work?
Qt Code:
  1. tableWidget->setFrameShape(QFrame::NoFrame);
To copy to clipboard, switch view to plain text mode