Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qmenubar
    Log in to post

    • SOLVED QMenuBar not displaying
      General and Desktop • qmenubar not displaying • • Saviz  

      3
      0
      Votes
      3
      Posts
      32
      Views

      @Chris-Kawa Thank you for your solutions and suggestions. I made sure to use the overload and to change my code to use the following in the appropriate place: this->setWindowState(Qt::WindowMaximized); Thank you again.
    • SOLVED Can't set fixed/minimal width for QMenuBar CornerWidget
      General and Desktop • c++ qt6 layout qmenubar layout issues • • bibasmall  

      5
      0
      Votes
      5
      Posts
      130
      Views

      @Chris-Kawa, oh, pardon my blindness, it really works. I found that the stylesheet is resetting the width of the button in my case.
    • SOLVED QMenuBar in QWidget windows
      General and Desktop • qwidget qmenubar • • artwaw  

      5
      0
      Votes
      5
      Posts
      366
      Views

      @JoeCFD Thank you, will investigate this avenue too!
    • UNSOLVED QMenuBar does not show action checkbox
      General and Desktop • qaction qmenubar qcheckbox • • Dariusz  

      4
      0
      Votes
      4
      Posts
      198
      Views

      If this is reproducible with C++, then C++ since the Python bindings are built on top of it.
    • SOLVED What's the practical/standard way to share a QMenuBar for the whole application?
      General and Desktop • cross platform qmenubar • • w3bvkas9  

      7
      0
      Votes
      7
      Posts
      236
      Views

      Thanks. I think you answered the question, please feel free to add anything later if you want. I mark it as solved.
    • SOLVED QMenuBar not responsive
      General and Desktop • c++ qmenu qmenubar qt 5.9.5 • • Daniel_Contro  

      6
      0
      Votes
      6
      Posts
      194
      Views

      It might be an issue with macOS 10.15. One thing you can do as a workaround is to disable the native macOS menu bar. You will have it on the QMainWindow but it should be usable.
    • SOLVED Can't change margins of items inside QMenuBar
      General and Desktop • qmenu qmenubar • • RBLL  

      3
      0
      Votes
      3
      Posts
      603
      Views

      QMenuBar { spacing: 0px; } That did it! Thank you very much!
    • UNSOLVED How to add QMenuBar to QWizardPage?
      General and Desktop • qmenubar qwizardpage • • mahesh_j  

      4
      0
      Votes
      4
      Posts
      321
      Views

      Can you provide a more complete code sample ? This would allow to work on the same base.
    • UNSOLVED QMainWindow::show() breaks QMenuBar::cornerWidget()
      General and Desktop • layout qmainwindow qmenubar show • • jacobP  

      3
      0
      Votes
      3
      Posts
      1732
      Views

      Hi SGaist and thank for the help. For the code being in the constructor when it should not be, I only did it that way to have the simplest code possible to show my issue. I understand and agree with your point. I am working on an already existing application, I created this QtCreator project to isolate and replicate the issue. I do not call QWidget::show() in the constructor of my application. I have made an important discovery while working on this issue: calling blue_widget->show() at the end of my code in my QtCreator project does fixe the problem, but doing the same in my application does not fix the issue. This is the 1st time I see a different behavior, I thought I had manage to have the same 1:1 behavior between the QtCreator project and my application. Thanks for the help, I will keep looking.
    • UNSOLVED Dynamic changed text of sub menu is cutting off
      General and Desktop • qwidget qlabel qmenu qmenubar qwidgetaction • • Zee_07  

      13
      0
      Votes
      13
      Posts
      4155
      Views

      I helped myself to set a minimum size ->setMinimumSize(300) I also had to problem that at first pop up, my text was cut off. Nothing of the workarrounds mentioned here helped.
    • UNSOLVED How to change style of root menu bar
      General and Desktop • stylesheet gui styles qmenubar • • Chase  

      1
      0
      Votes
      1
      Posts
      636
      Views

      No one has replied

    • UNSOLVED [SOLVED] Add QAction into QMenuBar in Designer
      General and Desktop • qtdesigner qaction qmenubar • • matobodo  

      5
      0
      Votes
      5
      Posts
      5518
      Views

      Ok, thanks.
    • Mac QT Creator: How to add QMenuBar from Design tool?
      Tools • qt creator mac qmenubar tutorials • • DannyatKDA  

      4
      0
      Votes
      4
      Posts
      1805
      Views

      Probably because on OS X the default menu bar is provided by the OS. See QMenuBar's documentation for more details. However I don't know if it's an OS X specific behavior of Qt Creator.
    • UNSOLVED How to make QMenuBar focused
      General and Desktop • focus qwindow qmenubar • • pmendl  

      6
      0
      Votes
      6
      Posts
      2413
      Views

      @pmendl No problem. Do bear in mind that if you decide to send the event with QApplication::sendEvent, you are responsible for the event object's deletion, so it's a good idea to create it on the stack in that case. Good luck! Kind regards.
    • SOLVED What's the cross-platform way to create a QMenuBar?
      General and Desktop • qmenubar • • detly  

      6
      0
      Votes
      6
      Posts
      1590
      Views

      If you mean that you want to follow the guidelines then you have nothing special to do, just use menuBar() and you're good to go.
    • [SOLVED] Adding QMenubar under every tab of QTabWidget
      General and Desktop • python qtabwidget qmenubar • • Streakflash  

      6
      0
      Votes
      6
      Posts
      1923
      Views

      @Streakflash Yeah I agree. But a lot of stuff is not really possible from Designer. Sadly.
    • Change Qt menu bar height using QStyle / QProxyStyle?
      General and Desktop • qstyle qmenubar qproxystyle • • jbrockerville  

      1
      0
      Votes
      1
      Posts
      1317
      Views

      No one has replied

    • Setting Custom Position of QMenuBar inside of MainWindow
      General and Desktop • c++ widgets mainwindow qmenubar • • ronaroja  

      6
      0
      Votes
      6
      Posts
      3143
      Views

      @ronaroja Check out the Menus example. This creates a QWidget that is used as the application central widget. Widget are added to the QVBoxLayout of this central widget. You will have to modify this example slightly; don't use the setMenuBar() and create a QMenuBar widget that you can add to the QVBoxLayout (doesn't have to be at the top).