Saving a QWidget in vector graphic format as a WMF or EMF file
onat last edited by
I need to implement a functionality in my application that will save the content of widgets as vector graphics in a WMF or EMF file. I did a lot of research and it seems that Qt does not have a standard library for manipulating these kinds of files. I tried installing libqemf (https://iondev.ro/qemf/), but couldnt get it to work. Is there any other library or tool that I can use for this purpose.
Thank you for your attention.
Pablo J. Rogina last edited by
but couldnt get it to work.
What is the error you're getting?
Where you able to compile/run the Emfviewer example provided with the download?
The qemf seems able to only rendering of EMF not generating it.
What is the data you want to put in the emf file ?
Qt has http://doc.qt.io/qt-5/qpicture.html#details
that works like WMF but its not same (file) format at all.
However, its pretty simle to generate WMF/EMF from windows API.