Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Pen thickness in pixel for QGraphicsItem
jj382 last edited by jj382
How can I specify the thickness of the the
QGraphicsItemin terms of pixels (fixed) regardless of scene transformation?
QGraphicsItem::ItemIgnoresTransformationwould ignore all transformations. I would like to set only thickness of QPainter's pen.
As an edit:
Example would be equivalence to a
QGraphicsLineItemwith a constant line thickness (specified in pixels) even with zooming in/out.