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

How to hide the menu bar



  • I want to hide the top menu bar in my QWindow application.
    FileMenu.png

    i have a widget which has black color i want it to become fullscreen without the menu bar.

    I have given the Frame less window hint but still i get the menu bar.

    Qt::WindowFlags flags;
    
    flags = Qt::FramelessWindowHint;
    

    But still the menu bar is visible.



  • @summit
    Before you go any further, why are you using a QWindow?

    An application will typically use QWidget [...] for its UI, and not QWindow directly.

    Separately:

    Qt::WindowFlags flags;

    flags = Qt::FramelessWindowHint;

    This code assigns a local variable. We don't know what you actually do with flags....


Log in to reply