Create an QAction with the shortcut "F1" .
Create a slot to catch the F1 triggered like -
Qt Code:
  1. QAction helpAction;
  2. helpAction.setShortCut("F1");
  3. connect(helpAction,triggered(),this,OnHelp());
  4.  
  5. OnHelp()
  6. {
  7. // call the WinHelp API u want
  8. }
To copy to clipboard, switch view to plain text mode 

Hope this was what u were looking for ?