[Solved]Hide Title bar in Qt Quick Application
QML and Qt Quick
4
Posts
2
Posters
10.3k
Views
1
Watching
-
I need to hide the title bar of my application. I tried
@setWindowFlags(Qt::Window | Qt::FramelessWindowHint);@
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'"
-
-
It worked.. Thanks...!!
[quote author="onek24" date="1395053622"]Hello and welcome to devnet,QtQuick2ApplicationViewer does not provide the function setWindowFlags(). You might have to use setFlags() instead.
Also you can set the flags in your QML-file if you are using a ApplicationWindow as yout top-level component.[/quote]