[Interest] [interest]
Till Oliver Knoll
till.oliver.knoll at gmail.com
Tue Jun 19 20:18:53 CEST 2012
Am 19.06.2012 um 19:34 schrieb Carlos Yoesly Oviedo Becerra <coviedo at estudiantes.uci.cu>:
> how i can to export pdf in QT,please help me
Hola Cuba! :)
Viva la revoluciĆ³n! Puede ser que Qt necessita una revoluciĆ³n tambien en esto tiempo! ;)
Para imprimir en formato PDF, puedes utilisar un QPrinter. En particular tienes que poner el formato a "PdfFormat" con
http://qt-project.org/doc/qt-4.8/qprinter.html#OutputFormat-enum
Despues puedes pintar con un QPainter.
Okay, just to correct my poor spanish :) You use an instance of a QPrinter as a paint device. You paint on it with a QPainter (after having set the page format, orientation, ...), but before starting to paint you also set the format to "PdfFormat" - there you go: a PDF document is the result (refer to the Qt docs for details about printing, as previously indicated).
Un saludo y mucha suerte,
Oliver
>
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list