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 delete blank areas of QMenuBar objects?
Forum Update on Monday, May 27th 2025

How to delete blank areas of QMenuBar objects?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 203 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.
  • D Offline
    D Offline
    Dump
    wrote on last edited by
    #1

    How to delete the blank areas below and to the right of the created QMenuBar object?屏幕截图 2024-01-02 202925.png

    jsulmJ 1 Reply Last reply
    0
    • D Dump

      How to delete the blank areas below and to the right of the created QMenuBar object?屏幕截图 2024-01-02 202925.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Dump Delete? I guess you mean set same dark color?
      Do you set style sheet in your app?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Dump Delete? I guess you mean set same dark color?
        Do you set style sheet in your app?

        D Offline
        D Offline
        Dump
        wrote on last edited by
        #3

        @jsulm Setting a style sheet can only make blank areas invisible, but it will persist. It prevents the menu bar from being centered up and down.

        Pl45m4P 1 Reply Last reply
        0
        • D Dump

          @jsulm Setting a style sheet can only make blank areas invisible, but it will persist. It prevents the menu bar from being centered up and down.

          Pl45m4P Online
          Pl45m4P Online
          Pl45m4
          wrote on last edited by Pl45m4
          #4

          @Dump

          What do you expect it to look like?

          but it will persist. It prevents the menu bar from being centered up and down.

          QMenuBar menus and actions are usually left aligned


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          1

          • Login

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