From kde-core-devel Thu Aug 14 21:06:14 2008 From: Michael Pyne Date: Thu, 14 Aug 2008 21:06:14 +0000 To: kde-core-devel Subject: Re: Qt SVG renderer Message-Id: <200808141706.18292.mpyne () purinchu ! net> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=121874802130002 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1377184.RjusWrl4Fz" --nextPart1377184.RjusWrl4Fz Content-Type: multipart/alternative; boundary="Boundary-00=_G5JpItWvSIt3Y2p" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-00=_G5JpItWvSIt3Y2p Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thursday 14 August 2008, Alex Merry wrote: > On Thursday 14 August 2008 13:37:35 Thiago Macieira wrote: > > Using glassified. This is before and after starting the Qt example > > desktop/systray. For the second test, I ran kruler and placed it over t= he > > system tray before starting the example. You can see kruler in the > > background of the icon. > > It seems to be something to do with QX11EmbedContainer. > > I've tried every trick I can find (setting setAutoFillBackground(true), > calling update() in all sorts of places, making sure > Qt::WA_OpaquePaintEvent isn't set...), and the background should be solid > black (well, actually a solid wash of the background colour of the theme), > but none of it makes any difference. SystemTrayContainer, which inherits > QX11EmbedContainer, just doesn't seem to be clearing its background. Is it possible to, instead of filling with Qt::transparent, fill with the=20 system tray's background color instead? This would require alpha support t= o=20 get it right and I don't remember the exact CompositionMode required for th= at=20 but it seems funny that we can't even do a solid fill. :-/ Regards, - Michael Pyne --Boundary-00=_G5JpItWvSIt3Y2p Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit

On Thursday 14 August 2008, Alex Merry wrote:

> On Thursday 14 August 2008 13:37:35 Thiago Macieira wrote:

> > Using glassified. This is before and after starting the Qt example

> > desktop/systray. For the second test, I ran kruler and placed it over the

> > system tray before starting the example. You can see kruler in the

> > background of the icon.

>

> It seems to be something to do with QX11EmbedContainer.

>

> I've tried every trick I can find (setting setAutoFillBackground(true),

> calling update() in all sorts of places, making sure

> Qt::WA_OpaquePaintEvent isn't set...), and the background should be solid

> black (well, actually a solid wash of the background colour of the theme),

> but none of it makes any difference. SystemTrayContainer, which inherits

> QX11EmbedContainer, just doesn't seem to be clearing its background.

Is it possible to, instead of filling with Qt::transparent, fill with the system tray's background color instead? This would require alpha support to get it right and I don't remember the exact CompositionMode required for that but it seems funny that we can't even do a solid fill. :-/

Regards,

- Michael Pyne

--Boundary-00=_G5JpItWvSIt3Y2p-- --nextPart1377184.RjusWrl4Fz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkiknkoACgkQqjQYp5Omm0qBzgCgrf934IEs531gpkP8Q/b5gRMT Kc4AoN24jcQTr9KjXzK942ljHEClEVtd =r0Ys -----END PGP SIGNATURE----- --nextPart1377184.RjusWrl4Fz--