Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[Solved]Hide Title bar in Qt Quick Application



  • 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'"



  • 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 your top-level component.



  • 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]



  • You're welcome. I'm glad that i could help you. Please add [solved] to the title of this thread so everyone else can see that the problem is solved/a solution was providet.


Log in to reply