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

The QDialog::showFullScreen() does not work on OS X system.

    XMLWordPrintable

    Details

    • Platform/s:
      macOS

      Description

      The test code listed below.

      diff --git a/examples/widgets/desktop/systray/window.cpp b/examples/widgets/desk
      index 0ef5ddb..bb31124 100644
      --- a/examples/widgets/desktop/systray/window.cpp
      +++ b/examples/widgets/desktop/systray/window.cpp
      @@ -92,7 +92,7 @@ Window::Window()
       void Window::setVisible(bool visible)
       {
           minimizeAction->setEnabled(visible);
      -    maximizeAction->setEnabled(!isMaximized());
      +    maximizeAction->setEnabled(!isFullScreen());
           restoreAction->setEnabled(isMaximized() || !visible);
           QDialog::setVisible(visible);
       }
      @@ -247,7 +249,7 @@ void Window::createActions()
           connect(minimizeAction, SIGNAL(triggered()), this, SLOT(hide()));
      
           maximizeAction = new QAction(tr("Ma&ximize"), this);
      -    connect(maximizeAction, SIGNAL(triggered()), this, SLOT(showMaximized()));
      +    connect(maximizeAction, SIGNAL(triggered()), this, SLOT(showFullScreen()));
      
           restoreAction = new QAction(tr("&Restore"), this);
           connect(restoreAction, SIGNAL(triggered()), this, SLOT(showNormal()));
      

      The QDialog::showFullScreen() works in Qt 4.8.5 environment.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              peppe Giuseppe D'Angelo
              Reporter:
              leonlee Leonard Lee
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes