[Interest] QPainter drawLine zValue?
giuseppe.dangelo at kdab.com
Wed Sep 25 20:55:27 CEST 2019
Il 25/09/19 19:13, Israel Brewster ha scritto:
> Is there a way to set the Z value of the line drawn by the
> QPainter::DrawLine() function? I have a library that uses the drawLine
> function to create a grid, and I would like to keep the grid on the top
> as I draw other things, if possible. Thanks.
Can you draw the grid _last_?
There's no Z value (or Z buffer altogether) for QPainter. A new drawX
command draws directly to the target, honouring the composition mode for
blending source and destination together.
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4329 bytes
Desc: Firma crittografica S/MIME
More information about the Interest