Hey Everyone,
I've been thinking about how to solve this for a long time, but haven't come up with anything satisfactory.
Basically, I have a graphicsview scene with some boxes and lines, and I want to be able to copy a part of that scene and paste it into an application like MS Word. The way I do it right now is to find the area that was selected, then render that area to an image and put it into the clipboard buffer. That works ok, but it's rendered as an image, so resizing it in word will degrade the quality very badly.
So what I really want is to copy it in some sort of vector format, so that Word will be able to resize it properly. Now on Windows my best bet seems to be EMF/WMF, which is a vector format basically consisting of GDI drawing commands. Obviously Qt can't export that (as far as I can tell), so I'll need to convert from one of the formats that Qt can create (SVG and PDF would be the best candidates I guess).
So has anyone approached this problem before? I can't find any good libraries that will allow me to convert svg or pdf to EMF/WMF, or more generally, how to copy vector data to the windows clipboard. Any suggestions?
I've tried uniconverter which claims to convert SVG to WMF, but it just produced garbage on a sample file I had. Another shareware converter also produced inaccurate results. Seems like it's not an easy task.
Bookmarks