Hello. I am wondering if I have perhaps found a bug in Qt's SVG rendering.

The attached SVG was produced by the attached MetaPost code. They are
just a few curves with the respective Bezier control handles marked.

For some reason Qt is not displaying the control points which are
drawn as big blue circles at the end of the handles. Opening the file
in Inkscape, Firefox etc indicates that it is well formed SVG because
those apps show the control points correctly. However if I try to
display this SVG using QSvgWidget, or using the SVG Viewer example
distributed with Qt, the control points are not displayed.

Is this a bug and should I report it? Or is there something else afoot?

BTW I'm using Qt 4.8.1 on Kubuntu Precise.

Thanks.

-- 
Shriramana Sharma

<<attachment: qt-svg-bug.svg>>

beginfig ( 1 ) ;

u = 100 ;
pair p [] ;
z1 = ( 0, 0 ) ;
z2 = ( 0, -u ) ;
z3 = ( u, u ) ;

for c = 1 upto 10 :

	path q ; q := z1 { curl c } .. z2 .. { up } z3 ;
	for i = 0 upto length ( q ) :
		draw point i of q withpen pencircle scaled 3 withcolor black ;
		p3 := precontrol i of q ;
		p4 := postcontrol i of q ;
		draw p3 -- p4 withcolor blue ;
		draw p3 withpen pencircle scaled 3 withcolor blue ;
		draw p4 withpen pencircle scaled 3 withcolor blue ;
	endfor;
	draw q ;

endfor ;

endfig ;
end ;
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to