here is how to hide the taskbar button, it was already explained to you in one of the earlier posts:

Qt Code:
  1. void mymainwindow::closeEvent(QCloseEvent *event) {
  2. hide();
  3. event->ignore();
  4. }
To copy to clipboard, switch view to plain text mode 

notice that you'll have to subclass QMainWindow, here mymainwindow is subclass of QMainWindow..if you have any other questions, go through this thread again, your problem has already been solved.