QtWebEngine cross orgin frame css

302 Views Asked by At

Two different behavior when loading the HTML in qtwebengine page using setHtml and in the browser. Cross origin iframe overrides the css of the main div in web engine page.

<div class="tradingview-widget-container" style="-webkit-filter:invert(100%) !important; filter:invert(100%); !important;"> 
<script type="text/javascript" 
src="https://s3.tradingview.com/external-embedding/embed-widget-technical-analysis.js"
await>
{
"width": "100%",
"height": "100%",
"symbol": "%1:%2"
}  </script>
</div>

Image when HTML file is loaded in chromium browser Image when loaded in qweb engine view

The second image is loaded using qwebengine view. I want to render the component in web engine exactly the same way as in the browser. Any help would be much appreciated!

0

There are 0 best solutions below