Hi,
I am trying to save QGraphicsScene to an SVG file, but there is a problem on the line thickness.
In all QGraphicsItem:: paint method, I apply a scaling QTransform to the QPainter as:
{
QTransform xf;
xf.scale( 20, 20 );
painter->setTransform( xf, true ); // combine with existing transform insider painter
}
MyItem::paint( QPainter* painter, ...)
{
QTransform xf;
xf.scale( 20, 20 );
painter->setTransform( xf, true ); // combine with existing transform insider painter
}
To copy to clipboard, switch view to plain text mode
This external transform seems to case the QPen's width to be scaled, even though my QPen has width 0 (zero) with setCosmetic( true ) used.
see the screen dump. Any input is appreciated!
Bookmarks