Qtopia-interest Archive, May 2007
Compositing in Qtopia-Core
Message 1 in thread
I have a non-rectangular image that I want to draw on top of other
widgets. I want to be able to antialias and blend through compositing
the borders of this non-rectangular image.
How is this typically done in Qtopia? An example use case would be a
floating hour-glass above a window.
Sean
--
[ signature omitted ]
Message 2 in thread
On Wednesday 23 May 2007 23:05, Sean Kelley wrote:
> I have a non-rectangular image that I want to draw on top of other
> widgets. I want to be able to antialias and blend through compositing
> the borders of this non-rectangular image.
>
> How is this typically done in Qtopia? An example use case would be a
> floating hour-glass above a window.
>
See the shaped clock example
(http://doc.trolltech.com/4.3/widgets-shapedclock.html) on how to create a
shaped top-level widget. To make it transparent, set the widget background
brush to transparent, e.g something like this:
QPalette pal = widget.palette();
pal.setBrush(QPalette::All, QPalette::Background, QColor(255, 255, 255, 127));
widget.setPalette(pal);
Hope this helps,
--
[ signature omitted ]