[Interest] How to prevent painter from ending() on render()
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Wed Jan 28 19:23:51 CET 2015
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.dangelo at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4048 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150128/3eaddbf2/attachment.bin>
More information about the Interest
mailing list