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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: 5.12
    • Fix Version/s: None
    • Component/s: Documentation, GUI: Menus
    • Labels:
      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

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              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