Pen thickness in pixel for QGraphicsItem
Unsolved
General and Desktop
-
wrote on 2 Dec 2015, 02:02 last edited by jj382 12 Feb 2015, 05:46
Hi,
How can I specify the thickness of the the
QPainter
'sQPen
inQGraphicsItem
in terms of pixels (fixed) regardless of scene transformation?QGraphicsItem::ItemIgnoresTransformation
would ignore all transformations. I would like to set only thickness of QPainter's pen.As an edit:
Example would be equivalence to a
QGraphicsLineItem
with a constant line thickness (specified in pixels) even with zooming in/out.
1/1