Unsolved Printing large images
-
I am trying to print a QTextDocument that contains images that are separated by double new line and are bigger than a page. So the printer splits it to two parts and prints on 2 pages,but the next one is printed on a new page.How can i make so the printer will print the pictures one after another??
PS if the images are separated by just one new line the images collide and they get cropped.
-
Hi and welcome to devnet,
You should add which version of Qt you are using ?
On which OS ?
Can you provide a minimal compilable example that shows that behavior ? -
Hello
I am using Qt version 5.9.3 on Windows 10.The Document is in a QTextEdit, the images have a size of 600x1150 and I am setting up the QPrinter like this.
QPrinter printer; QPrintDialog* printDlg = new QPrintDialog(&printer); if(printDlg->exec() == QDialog::Accepted){ ui.textEdit->print(&printer); }
EDIT:I am printing in PDF format.The PageSize is Letter,page range is ALLPAGES.
-
@DrZod Can you try with the latest stable Qt version (Qt 5.13)? 5.9 is quite old.