PDA

View Full Version : Document generation



tomas.soltys
24th February 2014, 21:54
Hi all,

I would like to generate a document in various file formats. So, is there a way in Qt to create a "Document model" and then export it to some defined file format?

Thanks,

Tomas

ChrisW67
25th February 2014, 04:26
There is no Qt QMagicDocument class with a set of saveAsArbitraryFormat() functions. QTextDocument can be exported as HTML or plain text, printed to PDF, or you could write a (non-trivial) function to output some arbitrary format from the object. C++ is a general purpose programming language. You are free to write any functionality you want, with or without using Qt and with or without using other third-party libraries.