PDA

View Full Version : keep the pen width constant, independant of the QPainter world matrix ?



muenalan
28th January 2009, 11:17
I encountered a situation where scaling of on object should not affect its pen. It hides a lot of the object then.

Is there a generic way to keep the pen constant, in other words, independant of the QPainter worldmatrix() ?

Thanks !
Mu

lni
28th January 2009, 14:47
I encountered a situation where scaling of on object should not affect its pen. It hides a lot of the object then.

Is there a generic way to keep the pen constant, in other words, independant of the QPainter worldmatrix() ?

Thanks !
Mu

I just had the same problem and found this: QPen::setCosmetic( true )