qt - Can we save png file using QPrinter? -


using same example in

how convert pdf file png (image) file in qt

is there way can use qpainter save png file. please see example below

qstring filepath("x.pdf"); qprinter printer(qprinter::highresolution); printer.setcreator(product_name); printer.setoutputfilename(filepath; printer.setoutputformat(qprinter::nativeformat); qpainter painter(&printer); render(&painter); 

i tried above code not working in case.the image not proper.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -