[Interest] Problem with zoomed-out qgraphicsview/scene

David Heremans david.heremans at intersoft-electronics.com
Tue Mar 29 16:47:59 CEST 2016


Hello,

I seem to have a 'visibility problem' with my application.
I have a QGraphicsscene that represents a piece of A4 paper at 300DPI
(approx. 3300 by 2500 scene coordinates). On this scene I have a simple
street map and some symbols. I draw the lines in black with thickness
ranging between 1 to 10 and when printed on paper this all looks fine.
However when I draw these in a much smaller qgraphicsview  I have to
zoom out quite a lot. As this happens the thin lines start to get
lighter and lighter up until the point that you can not see them any more.
Is there a way to avoid this from happening?

I know that if I draw them with size 0 then the lines will always be one
pixel wide on screen but then the printed version is not as nice. And
then they also will always be the same thickness even when zoomed in to
100%.

It really is a problem because some of the symbols become invisible this
way when you are editing the map.

Any body here has any hints on how to handle this situation?

regards,

David H

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3712 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160329/0945cf02/attachment.bin>


More information about the Interest mailing list