<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Transparent QWebView with Qt5]]></title><description><![CDATA[<p dir="auto">We used to use trick <a href="http://blog.qt.digia.com/blog/2009/06/30/transparent-qwebview-or-qwebpage/" target="_blank" rel="noopener noreferrer nofollow ugc">http://blog.qt.digia.com/blog/2009/06/30/transparent-qwebview-or-qwebpage/</a> to make QWebView transparent with Qt4 as following, but same code give us blank background with Qt 5.2. Is there any way I can make that work with Qt5?</p>
<p dir="auto">@<br />
setAttribute(Qt::WA_TranslucentBackground, true);<br />
setWindowFlags(Qt::FramelessWindowHint | Qt::Tool);</p>
<p dir="auto">if(m_pWebView)<br />
{<br />
QPalette palette = m_pWebView-&gt;palette();<br />
palette.setBrush(QPalette::Base, Qt::transparent);<br />
m_pWebView-&gt;page()-&gt;setPalette(palette);<br />
m_pWebView-&gt;setAttribute(Qt::WA_OpaquePaintEvent, false);<br />
m_pWebView-&gt;setContextMenuPolicy(Qt::NoContextMenu);<br />
}<br />
@</p>
]]></description><link>https://forum.qt.io/topic/36333/transparent-qwebview-with-qt5</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 03:19:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/36333.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Jan 2014 10:35:16 GMT</pubDate><ttl>60</ttl></channel></rss>