Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to hide the menu bar

How to hide the menu bar

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 668 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    summit
    wrote on last edited by
    #1

    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.

    JonBJ 1 Reply Last reply
    1
    • S summit

      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.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @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....

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved