[Interest] QGraphicsScene and writing to file

Sean Harmer sean.harmer at kdab.com
Thu Sep 29 09:43:24 CEST 2016


Hi,

On Wednesday 28 September 2016 23:31:37 Petric Frank wrote:
> ------------------- cut ---------------------------
> 
> But this does not work for bigger pictures. No error message. The viewer
> simply tells that the generated *.png file are corrupted.The scenes reqire
> a width of about 100000 pixels.
> 
> After some searching in the web i found out the QImage (and QPixmap)
> seems to have an internal limitation of about 32k x 32k.
> 
> The PNG-format does not have such a limitation.
> 
> Any hints on how to export such a big scene to a PNG (or other) file ?

Render it in tiles then use something other than QImage to stictch them 
together afterward.

Cheers,

Sean
-- 
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts



More information about the Interest mailing list