Question

I'm going to write an app in Qt that uses Qt Graphics View Framework. I have a QGraphicsScene with some simple texts in it. I'm going to export the scene to be used in Corel Draw. I think the best option is to save items in a .dxf file. Is there better way ? Should I use dxflib ?

Was it helpful?

Solution

Qt supports the svg file format with the paint device QSvgGenerator class, whose instance can be passed to a QPainter.

If you save as svg (scalable vector graphics) with this, I would expect Corel Draw to be able to import it.

Just ensure you link against the svg module by adding this to your .pro file: -

QT += svg
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top