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

Setting the background color of a QWebEnginePage to transparent changes the drawing order of widgets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.1
    • 5.13.1
    • WebEngine
    • None
    • Linux/X11

      Changing the background of a QWebEnginePage via setBackground(..) to transparent changes the order in which the overlaying widgets are displayed. In the following example there is a LineEdit displayed over the QWebEngineView, this works as expected. Changing the background color to of the QWebEnigePage to QT::transparent renders the background transparent but also draws the QWebEngineView now over the LineEdit. In addition to that the area where the LineEdit would be still emits mouse events for the LineEdit.

       

      Commenting/Uncommenting line 37 in ui_mainwindow.h changes between the two behaviors.

        1. qt-bug-test.zip
          5 kB
          Mario Aichinger
        2. qt-bug-test-broken.png
          8 kB
          Mario Aichinger
        3. qt-bug-test-no-transp.png
          7 kB
          Mario Aichinger
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt_webengine_team Qt WebEngine Team
            aichingm Mario Aichinger
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes