Il 28/01/2015 18:50, Jason H ha scritto:
So how can someone render multiple widgets on multiple pages? It seems the only option is manual draw***() commands on the painter, but that is tedious, and Qt has a nice Layout manager system...
1) Have you tried first opening a QFile, then using QPDFWriter's ctor that takes a QIODevice? I would be really annoyed if closing the painter would close the device on my back. Annoyed to the point to call it a Qt bug.
2) Have you tried painting the widget on a QPicture, then replaying the QPicture on the PDF?
HTH, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Software Engineer KDAB (UK) Ltd., a KDAB Group company Tel. UK +44-1738-450410, Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-independent software solutions
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest