Your GLWidget class shows two constructors in its header:

Qt Code:
  1. GLWidget();
  2.  
  3. // and
  4.  
  5. explicit GLWidget( QWidget * parent = 0 );
To copy to clipboard, switch view to plain text mode 

These two are indistinguishable to the compiler when used as you are doing ("GLWidget w;"). Get rid of the first constructor (GLWidget()) and the warning will go away.