Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Printing large images
Forum Updated to NodeBB v4.3 + New Features

Printing large images

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 613 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DrZod
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DrZod
        wrote on last edited by DrZod
        #3

        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.

        jsulmJ 1 Reply Last reply
        0
        • D DrZod

          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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @DrZod Can you try with the latest stable Qt version (Qt 5.13)? 5.9 is quite old.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved