I want to use QPainter's transform setup to convert coordinates in my system into the device's system (including zoom) but I don't want to apply those same changes to pens. Currently I have tried:
Qt Code:
QTransform trans = painter->transform(); painter->resetTransform(); pen.setWidth(new_width); painter->setPen(pen); painter->setTransform(trans);To copy to clipboard, switch view to plain text mode
This isn't working. After this call the pen is this giant rectangle rather than a two pixel line.
Any ideas?
Bookmarks