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

Menubar and dock gone after hiding a fullscreen widget on the Mac OS X - Cocoa

    XMLWordPrintable

Details

    • macOS
    • 0481c2dfbbcc59b76bde3f72fbe6d1e4003c913a

    Description

      When first showing a fullscreen widget and then hiding it and showing a normal sized widget, then the dock and menubar will remain hidden for the normal sized window.
      Taking the focus off the application brings the dock and menubar back.

      #include <QtGui>
      
      class Widget : public QWidget
      {
              Q_OBJECT
      public:
              Widget()
              {
                      QTimer::singleShot(3000, this, SLOT(testSlot()));
                      QTimer::singleShot(5000, this, SLOT(testSlot2()));
                      QTimer::singleShot(7000, this, SLOT(testSlot3()));
              }
      
      public slots:
              void testSlot()
              {
                      hide();
              }
      
              void testSlot2()
              {
                      dialog = new QDialog(0);
                      dialog->showFullScreen();
              }
      
              void testSlot3()
              {
                      dialog->hide();
                      show();
              }
      
      private:
              QDialog *dialog ;
      };
      
      
      #include "main.moc"
      
      int main(int argc, char **argv)
      {
          QApplication app(argc, argv);
          Widget box;
          box.show();
          return app.exec();    
      }
      

      This bug was fixed in Qt 4.3.3, but is now present again in Cocoa.
      See: http://qt.nokia.com/developer/task-tracker/index_html?id=179882&method=entry

      Attachments

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

        Activity

          People

            cduclos Carlos Duclos (Inactive)
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes