Hi Guys,
I am making and example code (for integrate later in my proyect) to print receipts using a SVG as template.
I have 2 problems:
1. Does Qt supports very will <tspan> inside <text>?:
The idea is to let user draft a SVG receipt template using Inkscape. Now, in inkscape when you create a <text> and inside that one newlines are inserted by using <tspan>. Every SVG viewer and browser shows this correctly, having one string under other as expected. Qt does not, it puts the strings one next the other (avoiding the existence of <tspan>). Now, i could fix this by inserting just one string per <text> and not using <tspan>. But the main question is if Qt supports it and if does, what i am doing wrong?.
2. Another related to rendering, as you can see in the SVG, i have a background in which represents the receipt structure. Well, Qt only is rendering only the backgrond color and the external borders. The lines inside the background, does not appear (which again, it works in all browsers and SVG viewers).
There is something i am doing wrong?
Here is my example code:
Main svn dir: http://websvn.tuxfamily.org/listing....x_SvgTemplate_
The main code is in mainApp.py and in that folder you have the SVG template too.
The example is in Spanish, but is just completing anything in the lineEdits and just adding some articles (artÃ*culos) with some values (cantidad, precio = quantity, price) for the testing and then just preview or print it.
Thanks in advance for any help and tips you guys can give me.
Bookmarks