Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-124154

As a developer, on mac and unity I would like the ability to display both menubars: native and widget.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.5, 6.6, 6.7, 6.8, 6.9, 7.0 (Next Major Release)
    • GUI: Menus
    • None
    • Linux/X11, macOS

    Description

      Large screens of more than 40" are becoming increasingly common. The native Mac and Unity menu is always displayed in the upper right corner. On these screens it would be convenient to also have the menubar available within the QWindow.

      A simple solution would be to create a subclass of QMenuBar and override setVisible(). Currently this is not possible because setVisible is not virtual.

      This request is to declare as follows:

       

      ...
          virtual QSize sizeHint() const override;
          virtual QSize minimumSizeHint() const override;
          virtual int heightForWidth(int) const override;
      ...
      public Q_SLOTS:
          virtual void setVisible(bool visible) override; 

       

      The special treatment of sizeHints could be a responsibility entrusted to developers.

      QMenuBarPrivate::updateGeometries() should not return when Q_OS_MAC

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jozzolo José Del Romano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes