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

No way to use automatically added "Enter Full Screen" menu item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.12
    • Documentation, GUI: Menus
    • None

    Description

      I'm using Qt Labs Platform, which is just a way of using native menus in QML. If I have a "View" menu, an "Enter Full Screen" menu item gets added automatically. This would be fine if there was documentation for how to use it or remove it completely and add my own, but currently it's just disabled.

      If I add my own menu item:

                  Platform.MenuItem {
                      objectName: "enterFullScreenMenuItem"
                      text: fullScreen ? qsTr("Exit Full Screen") : qsTr("Enter Full Screen")
                      enabled: canvas
                      checkable: true
                      checked: settings.scrollZoom
                      onTriggered: settings.scrollZoom = checked
      
                      readonly property bool fullScreen: settings.windowVisibility === Window.FullScreen
                  }
      

      Then I end up with two.

      Related stuff:

      Attachments

        Issue Links

          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
              mitch_curtis Mitch Curtis
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes