[Qt-interest] ugly QGraphicsTexItem when it is zoomed

changwon lee bosscq at nexgeo.com
Thu Sep 16 16:37:11 CEST 2010


  Hello

I have attached two pictures.
These are the result of modified DiagramScene Example.

I have modified two part.
one is font size and another is scale;
I used float font size and can change scale freely.

change_font_size_fix_scale image looks good.
it's font size is 48.5 and no scale is applied.

fix_font_size_change_scale image looks bad.
I have set font size 1.5 and magnified x37.

I want to define font size as scene coordinate. if I change scale, text 
changes with other objects in scene.
This is similar to adding text in CAD. User define text size as length 
in drawing coordinate system.
but it seems that my assumption is not true.

Do I have to change font size when scale changes?

regards





-------------- next part --------------
A non-text attachment was scrubbed...
Name: change_font_size_fix_scale.png
Type: image/png
Size: 44320 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100916/64bb79bc/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_font_size_change_scale.png
Type: image/png
Size: 43426 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100916/64bb79bc/attachment-0001.png 


More information about the Qt-interest-old mailing list