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

QQuickWidget renders offset/black bar when embedding via createWindowContainer

    XMLWordPrintable

Details

    • Windows

    Description

      We are using a QApplication that uses a QtWebEngineView. If you try to embed this application into another application via winId some bugs appear: 

      // create a QWindow* of the QtWebEngine-Application
      QWindow* webEngineWindow = QWindow::fromWinId( winid );
      // embed QWindow into a QWidget
      QWidget* widget = QWidget::createWindowContainer( webEngineWindow );  
      

      Without the createWindowContainer() function the extern application works fine but is placed in a seperate window. We want to have it inside a QWidget in our main application. After calling the createWindowContainer() function a black bar appears on top and on side of the widget:

       

      Furthermore there is a weird offset of about 10-20 pixels between the mouse and the underlying buttons etc as you can see in the following gif:

       

       

      Attachments

        1. embeddedbug_29_09.png
          embeddedbug_29_09.png
          27 kB
        2. image-2020-09-29-15-26-36-214.png
          image-2020-09-29-15-26-36-214.png
          71 kB
        3. qquickwidget.gif
          qquickwidget.gif
          288 kB
        4. qtwebengineembedded_1.png
          qtwebengineembedded_1.png
          98 kB
        5. qtwebengineembedded_2.gif
          qtwebengineembedded_2.gif
          682 kB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              mbaldus Maximilian Baldus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes