Results 1 to 3 of 3

Thread: Paging when Printing from QWebView into QPrinter

  1. #1
    Join Date
    Jul 2012
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Paging when Printing from QWebView into QPrinter

    Hi,

    i got the following Problem when printing my html which i loaded into a QWebView by using print(QPrinter). The image is splitted into two parts when the page break occurs. Can I do something to prevent this?

    Thx,
    Christian

    screenshot.jpg
    Last edited by anda_skoa; 13th March 2014 at 11:09. Reason: Make title more explicit

  2. #2
    Join Date
    Jul 2012
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Paging when Printing from QWebView into QPrinter

    No one any idea?

  3. #3
    Join Date
    Jan 2013
    Location
    San Francisco, CA
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Paging when Printing from QWebView into QPrinter

    It's been a while since this was posted, but I would try using this CSS property for your image, or a variation thereof: "page-break-before: always"
    http://www.w3schools.com/cssref/pr_print_pagebb.asp

Similar Threads

  1. problem printing html with Qprinter and Qwebview
    By advseo32 in forum Qt Programming
    Replies: 3
    Last Post: 1st October 2013, 22:12
  2. Replies: 1
    Last Post: 14th May 2013, 08:54
  3. Replies: 0
    Last Post: 29th April 2013, 12:47
  4. Printing QwtPlot on QPrinter
    By gkarthick5 in forum Qwt
    Replies: 5
    Last Post: 28th June 2011, 13:33
  5. Printing via QPrinter doesnt work
    By mSergey in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2008, 20:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.