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

Details

    • Bug
    • Resolution: Duplicate
    • 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

    Description

      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.

      Attachments

        1. qtdiag.txt
          4 kB
        2. qtbug44247.zip
          2 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: