Qt Code:
  1. T ok();
To copy to clipboard, switch view to plain text mode 

I think this is a declaration of a function named ok and taking no parameters and returning value of type T.

If you have QWidget not found, check if you are using Qt Gui module. It should be included by default but you may have something like :
Qt Code:
  1. QT -= gui
To copy to clipboard, switch view to plain text mode 
in your .pro file. If there is such line, just remove it and qmake and make again.