title: Print error on page (qtWebkit)
body: <h2>Bug in Qt5.2.1:</h2>
  
  <p>The only problem was corrected in <code>QPrintPreviewDialog</code> but when the print is printed on paper the failure still exists.</p>
  
  <p>With <code>QPrintPreviewDialog</code> pages work perfect, but on "paper" (printed in paper) from second page (in other words all pages except the first occur the BUG) "texts" and "images" (non-background) disappear (apparently the fault only occurs with inline elements).</p>
  
  <p>See:
  <a href="https://bugreports.qt.io/browse/QTBUG-37240" rel="nofollow noreferrer">https://bugreports.qt.io/browse/QTBUG-37240</a> (see the attachments to a test-case)</p>
  
  <hr>
  
  <h2>Bug in Qt5.0.1, Qt5.0.2 and Qt5.1.0</h2>
  
  <p>The first page of the print out of a <strong>QWebView</strong> with small fonts and images.</p>
  
  <p>Apparently the problem only occurs with inline elements (texts and images).</p>
  
  <blockquote>
    <p><strong>Note:</strong> The error occurs in Windows XP, Windows 7, Window 7 x64, Mac OS X 10.8.3</p>
  </blockquote>
  
  <p><strong>[edit]</strong></p>
  
  <p>Source-html: <a href="http://jsfiddle.net/bdm6Y/2/" rel="nofollow noreferrer">http://jsfiddle.net/bdm6Y/2/</a></p>
  
  <p>Frame content: <a href="http://jsfiddle.net/bdm6Y/2/show/" rel="nofollow noreferrer">http://jsfiddle.net/bdm6Y/2/show/</a></p>
  
  <p><img src="https://i.stack.imgur.com/Y9dOc.png" alt="ErrorPrint"></p>
  
  <p><strong>Source:</strong></p>
  
  <pre><code>QPrinter p;
  p.setPaperSize(QPrinter::A4);
  p.setFullPage(true);
  p.setResolution(300);
  p.setOrientation(QPrinter::Portrait);
  
  QPrintPreviewDialog preview(&amp;p);
  preview.setWindowTitle(ui-&gt;myWebView-&gt;page()-&gt;mainFrame()-&gt;title());
  connect(&amp;preview, SIGNAL(paintRequested(QPrinter*)), this, SLOT(printPreview(QPrinter*)));
  preview.exec();
  
  ...
  
  void printPreview(QPrinter *printer) {
      ui-&gt;myWebView-&gt;print(printer);
  }
  </code></pre>
  
  <p>I do not know if this is a bug or something I did wrong, what could it be?</p>
  
  <p>Thanks!</p>
  
  <p><strong>[edit]</strong></p>
  
  <p><em>QT bug reports:</em></p>
  
  <p><a href="https://bugreports.qt.io/browse/QTBUG-30621" rel="nofollow noreferrer">https://bugreports.qt.io/browse/QTBUG-30621</a></p>