<?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[QWSServer : Changing background color]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm using Qt4.8 on an embedded platform and I would like to change the background color of the QWSServer to set it as transparent.<br />
I tried to change the QWSServer's brush using the function <em>qwsServer-&gt;setBackground(QBrush(Qt::transparent));</em> but it doesn't work.<br />
I also tried <em>Qt::red, Qt::white</em> but the background color remains unchanged.</p>
<p dir="auto">Does anyone have an idea ?</p>
<p dir="auto">Thanks.</p>
<p dir="auto">Here is my initialization code...<br />
@int main(int argc, char *argv[])<br />
{<br />
QApplication a(argc, argv, QApplication::GuiServer);<br />
qwsServer-&gt;setBackground(QBrush(Qt::transparent));</p>
<p dir="auto">CustomWindow w;<br />
w.setGeometry(50, 50, 500, 300);<br />
w.show();<br />
return a.exec();<br />
}<br />
@</p>
]]></description><link>https://forum.qt.io/topic/15215/qwsserver-changing-background-color</link><generator>RSS for Node</generator><lastBuildDate>Sun, 25 Oct 2026 09:58:14 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/15215.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Mar 2012 11:30:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QWSServer : Changing background color on Mon, 26 Mar 2012 08:52:27 GMT]]></title><description><![CDATA[<p dir="auto">Thanks all,</p>
<p dir="auto">The solution of timon works.</p>
]]></description><link>https://forum.qt.io/post/133589</link><guid isPermaLink="true">https://forum.qt.io/post/133589</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 26 Mar 2012 08:52:27 GMT</pubDate></item><item><title><![CDATA[Reply to QWSServer : Changing background color on Fri, 23 Mar 2012 15:46:13 GMT]]></title><description><![CDATA[<p dir="auto">I have same issue, and figured out it using /etc/directfbrc config. I added option <em>bg-none</em> or <em>bg-color=000000</em> in config for transparent background. <a href="http://directfb.org/docs/directfbrc.5.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://directfb.org/docs/directfbrc.5.html</a></p>
]]></description><link>https://forum.qt.io/post/133447</link><guid isPermaLink="true">https://forum.qt.io/post/133447</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 23 Mar 2012 15:46:13 GMT</pubDate></item><item><title><![CDATA[Reply to QWSServer : Changing background color on Thu, 22 Mar 2012 14:41:49 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, I'm using 4.8.  And not using Direct FB, using QWS_DISPLAY=LinuxFB.</p>
]]></description><link>https://forum.qt.io/post/133327</link><guid isPermaLink="true">https://forum.qt.io/post/133327</guid><dc:creator><![CDATA[blaroche]]></dc:creator><pubDate>Thu, 22 Mar 2012 14:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to QWSServer : Changing background color on Thu, 22 Mar 2012 14:09:11 GMT]]></title><description><![CDATA[<p dir="auto">What Qt version do you use?</p>
<p dir="auto">PS : I use Direct FB display driver.</p>
]]></description><link>https://forum.qt.io/post/133320</link><guid isPermaLink="true">https://forum.qt.io/post/133320</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 22 Mar 2012 14:09:11 GMT</pubDate></item><item><title><![CDATA[Reply to QWSServer : Changing background color on Thu, 22 Mar 2012 12:53:59 GMT]]></title><description><![CDATA[<p dir="auto">yes, setting it to white works as well</p>
]]></description><link>https://forum.qt.io/post/133302</link><guid isPermaLink="true">https://forum.qt.io/post/133302</guid><dc:creator><![CDATA[blaroche]]></dc:creator><pubDate>Thu, 22 Mar 2012 12:53:59 GMT</pubDate></item><item><title><![CDATA[Reply to QWSServer : Changing background color on Thu, 22 Mar 2012 12:43:03 GMT]]></title><description><![CDATA[<p dir="auto">Still doesn't work.</p>
<p dir="auto">Does it work on your side?</p>
<p dir="auto">Does your background change to black?</p>
]]></description><link>https://forum.qt.io/post/133297</link><guid isPermaLink="true">https://forum.qt.io/post/133297</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 22 Mar 2012 12:43:03 GMT</pubDate></item><item><title><![CDATA[Reply to QWSServer : Changing background color on Thu, 22 Mar 2012 12:38:03 GMT]]></title><description><![CDATA[<p dir="auto">try this</p>
<p dir="auto">@#include &lt;QWSServer&gt;<br />
int main(int argc, char *argv[])<br />
{<br />
QApplication app(argc, argv);</p>
<pre><code>#ifdef Q_WS_QWS
app.setOverrideCursor( QCursor( Qt::BlankCursor ) );
QWSServer::setCursorVisible( false );
QWSServer::setBackground(QBrush(Qt::black));
//QWSServer::setBackground(QBrush(Qt::transparent));  // have not tested  
#endif
</code></pre>
<p dir="auto">}@</p>
]]></description><link>https://forum.qt.io/post/133296</link><guid isPermaLink="true">https://forum.qt.io/post/133296</guid><dc:creator><![CDATA[blaroche]]></dc:creator><pubDate>Thu, 22 Mar 2012 12:38:03 GMT</pubDate></item></channel></rss>