On Nov 16, 12:23 am, Niels Slot <
nielss...@gmail.com> wrote:
> Hi Lior,
>
> Nice to read that you're using KTurtle.
>
> I gave your example program a test drive. The only problem I could see was
> that the lines drawn last aren't always on top. For example, I see the bue
> square on top of the yellow square, even though the yellow one got drawn
> after the blue one did.
>
> The technical reason for this problem is the way we use Qt's Graphics View.
> For each line the turtle draw we add a line-object to the canvas. Each of
> these line objects currently has the same 'z-value'. (The 'z-value'
> determines which object is atop of other objects.) Because we give all
> objects the same 'z-value' it's up to Qt to decide which line is on top.
>
> A while back I wrote a small patch to increase the 'z-value' for each line
> we draw. This however had some drawbacks, I should remember to have a chat
> with Cies about it.
>
> Thanks for your feedback,
>
> Niels
>