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

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes