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

QMainWIndow and QQuickWidget/QOpenglWidget do not work together

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.2, 5.10.0 RC
    • GUI: OpenGL, Quick: Widget
    • None
    • Windows 10

    Description

      Create a main window form in designer, then place a QQuickWidget/QOpenglWidget in the central area.

      What I see is that the window gets "distorted" - the whole contents of the QtCreator window is shifted up about 20-30 pixels so the menu bar and the is hidden.

      If I remove the QOpenglWidget again, the creator window is okay, but the designer area is still wrong. A repaint fixes this though.

      I see similar but slightly different results when I try and place a QOpenglWidget in QMainWIndow in code. After setting the resize root note to widget flag, it almost works, except the menu bar is invisible - the area is there and I can click the menu bar and get the proper menu folded down, but the menu bar itself is not painted. Without the resize flag set, the window doesn't show the menu bar.

      My environment is a downloaded binary Qt 5.9.2 on Windows 10. I did not compile Qt myself or have any strange settings. This happens with a vanilla Qt.

      Attachments

        1. 1-okay.png
          1-okay.png
          142 kB
        2. 2-bad-with-widget.png
          2-bad-with-widget.png
          181 kB
        3. 3-after-remove.png
          3-after-remove.png
          144 kB
        4. black_wrong_position.jpg
          black_wrong_position.jpg
          203 kB
        5. IntelDriverUpdate.png
          IntelDriverUpdate.png
          29 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tvete Paul Olav Tvete
            bothorsen Bo Thorsen
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes