I need to hide the title bar of my application. I tried

Qt Code:
  1. setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
To copy to clipboard, switch view to plain text mode 

in main.cpp.. But i got the error "C:\Qt\Qt5.2.1\Tools\QtCreator\bin\PSC\main.cpp:13 : error: C2039: 'setWindowFlags' : is not a member of 'QtQuick2ApplicationViewer'"