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

When you have a QGLWidget embedded in a window and a toolbar that that has an extension menu then the extension for the toolbar does not behave correctly

    XMLWordPrintable

Details

    • 624df9cf7fcf844ae1af0e7c8e465adb164bedd0, 11442778ed52ee6c6341ed04df0eaabc8af95bc6, 79fb39a87ce5ffbda22f297977b510e89ebf5485, b1714aec5103ddd24e4f1cf14138746a3526ae95 plus many others

    Description

      When you have a QGLWidget embedded in a window and a toolbar that that has an extension menu then the extension for the toolbar does not behave correctly. This depends on the QApplication attribute - Qt::AA_DontCreateNativeWidgetSiblings being set which is necessary to work around some QGLWidget related issues on Windows.

      If the QGLWidget is visible on screen, then it will obscure the toolbar extension where it intersects the QGLWidget. If it is not visible on screen (i.e. in a tab widget or similar) then the extension shows fine but if you move the mouse over to where the QGLWidget would be intersecting it then it just closes the extension altogether since it gets a leave event for the window.

      Steps to reproduce:

      • Launch qtbug33082, shrink horizontally such that toolbar shows ">>" extension menu
      • Click on extension menu, note that toolbar shows items in a 2nd line
      • Try to click item from 2nd line: Extension closes before you can reach it
      • Relauch with -g (Do not create GL Window): Note it works now, items from 2nd line can be clicked

      Note: The example sets a QMainWindow as central widget of the outer mainwindow and adds the docks to inner main window. The bug goes away if the docks are added to the outer mainwindow (command line option -i). In Qt 4, the toolbar extension does not open at all in the nested setup.

      Attachments

        1. qtbug33082.zip
          4 kB
          Friedemann Kleint
        2. TestToolbarDropdown.zip
          4 kB
          Andy Shaw
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            andysh Andy Shaw
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: