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

Restoring geometry of QWidget with a child QWebEngineView may result in assert failure on multi screen setup

    XMLWordPrintable

Details

    • Windows
    • 009abcd7b66738bece6cf354776dfb2ef401636b (qtbase/5.14, 10.12.2019, 5.14.1)

    Description

      If a QWidget is given a parent but it's also given the window flag Qt::Window and a child QWebEngineView, restoring the geometry of the said QWidget may result in:

       

      5.13: ASSERT: "!region.isEmpty() || widgetTextures" in file kernel\qwidgetbackingstore.cpp, line 91
      5.14: ASSERT failure in QWidget::mapTo(const QWidget *parent, const QPoint &pos): 
       "parent must be in parent hierarchy", file kernel\qwidget.cpp, line 4064
       

      Steps to reproduce:

      1. Run the attached project
      2. Click the button to create and show the child window QWidget with a webengineview
      3. Close the child window to save geometry
      4. Move the parent window to a different screen
      5. Click the button again to show the child window & restore it's geometry

      Additional notes:

      • Does not occur without child QWebEngineView
      • Does not occur if the QWidget does not have a parent

      Attachments

        1. qtbug79901_diag.diff
          9 kB
        2. qtbug79901_qw_514_stack.txt
          35 kB
        3. qtbug79901_qw_log.txt
          79 kB
        4. qtbug79901_qw_log.txt
          213 kB
        5. qtbug79901_qw.zip
          9 kB
        6. qtbug79901_stack.txt
          68 kB

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              miikapernu Miika Pernu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes