Quote Originally Posted by sophister View Post
Next thing is, I do not think it is necessary in the
Qt Code:
  1. void MainWindow::slotExecute()
To copy to clipboard, switch view to plain text mode 
to check if the sender is NULL, because if there is no sender, this SLOT won't be called, right?
you can call this slot by yourself somwhere in your code, so this check is needed.
note:
...Slots are normal C++ functions and can be called normally; their only special feature is that signals can be connected to them.