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

QMenu does no open when a main window which contains QQuickWidget is shown is fullscreen mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.4.0
    • None
    • Os: Windows 8.1
      Qt version : Qt 5.4.0 for Windows 32-bit (VS 2013), Desktop GL GeForce GTX 690/PCIe/SSE2

      I create a QMainWindow with a menu bar that has a menu and action. If the main window contains a QQuickWidget (as the central widget or in any other form) the menu bar is not accessible when the main window in shown in full screen mode.

      Here is a sample code that reproduces the issue :

      #include <QApplication>
      #include<QMainWindow>
      #include <QMenu>
      #include <QMenuBar>
      #include <QQuickWidget>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QMainWindow w;
      
          QAction *actionNew = new QAction(&w);
          actionNew->setText("New");
      
          QMenuBar *menuBar = new QMenuBar(&w);
      
          QMenu *menuFile = new QMenu(menuBar);
          menuFile->setTitle("File");
      
          menuBar->addAction(menuFile->menuAction());
          menuFile->addAction(actionNew);
      
          w.setMenuBar(menuBar);
      
          w.setCentralWidget(new QQuickWidget);
      
          w.showFullScreen();
      
          return a.exec();
      }
      

      In this code sample when i click on a menu it will not open the menu.

      If you show the main window in maximized mode, everything is fine.

        1. qtbug44247.zip
          2 kB
        2. qtdiag.txt
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tvete Paul Olav Tvete
            nejatafshar Nejat Afshar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes