[PyQt] scene and layers

Jan Ekholm jan.ekholm at smultron.net
Fri Apr 30 08:40:15 BST 2010

On Friday 30 April 2010, Christopher M. Nahler wrote:
> I have found that there is some layers support with a graphics scene. I
> just have not been able to figure out how it works.
> As far as I understand there is at least a background, standard layerand
> a foreground (drawn in this order).
> But how do I assign items to a layer?
> Or are all added items in the standard layer and I have to draw directly
> on the fore- and backgroundlayers?

The foregound and background aren't really layers where you can put items. 
They allow you to draw a custom background and something extra in the 
foreground on top of everything else.

I'd look at the z property of items to create virtual layers.

Jan Ekholm
jan.ekholm at smultron.net

More information about the PyQt mailing list