alitoh
9th August 2012, 19:14
This is a doubt I got from checking the Vector Deformation Demo (http://doc.qt.nokia.com/4.7-snapshot/demos-deform.html). Can I load a vector image and then copy it to a QPainterPath variable?
I wish to "extend" the demonstration to vector images, not just the text in the textbox, but I just don't seem to understand how.
I am guessing there is some correlation both because of the documentation and because the fonts themselves are vectors, and the principle should be about the same for applying either the text or the vector image the deformation effect.
So, is there a way to load an SVG (or any other vector file extension) and use that in the Vector Deformation Demo?
This is a doubt that got generated while I was playing around with the QT Demos in my spare time, so my only source files are the Demo Projects themselves, hence I got nothing to provide you on that part.
Any input is appreciated.
For reference, let's just pretend the image I am trying to import into the demo is this one (http://upload.wikimedia.org/wikipedia/commons/a/aa/VectorBitmapExample.svg).
I wish to "extend" the demonstration to vector images, not just the text in the textbox, but I just don't seem to understand how.
I am guessing there is some correlation both because of the documentation and because the fonts themselves are vectors, and the principle should be about the same for applying either the text or the vector image the deformation effect.
So, is there a way to load an SVG (or any other vector file extension) and use that in the Vector Deformation Demo?
This is a doubt that got generated while I was playing around with the QT Demos in my spare time, so my only source files are the Demo Projects themselves, hence I got nothing to provide you on that part.
Any input is appreciated.
For reference, let's just pretend the image I am trying to import into the demo is this one (http://upload.wikimedia.org/wikipedia/commons/a/aa/VectorBitmapExample.svg).