Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.1, 5.3.0 Beta1
-
Windows 7
-
f2e6570e4f31cbf565aa2849ccc12692c6201bd5
Description
Webkit is not printing page correctly anymore in Qt 5.2.1. Probably regression from Qt 5.2.0 (customer says). At least Qt 5.1.1 prints page graph correctly. Open attached printer pdf file and see grey border around graph lines. Can be easily tested with example below:
main.cpp
#include <QApplication> #include <QWebView> #include <QWebFrame> #include <QPrinter> #include <QBuffer> class WebView : public QWebView { public: WebView() : QWebView(0) { load(QUrl("http://www.highcharts.com/demo/")); } void mousePressEvent(QMouseEvent *) { QWebFrame *const mainFrame = page()->mainFrame(); QBuffer device; QByteArray m_Buffer; device.setBuffer(&m_Buffer); device.open(QIODevice::WriteOnly); QPrinter printer; printer.setOutputFormat(QPrinter::PdfFormat); printer.setPageSize(QPrinter::A4); QString filename; filename = "webpage.pdf"; printer.setOutputFileName(filename); mainFrame->print(&printer); } }; int main(int argc, char *argv[]) { QApplication a(argc, argv); WebView w; w.show(); return a.exec(); }
Attachments
For Gerrit Dashboard: QTBUG-37101 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
82039,1 | Fix regression on stroking transparent SVG paths to PDF | stable | qt/qtwebkit | Status: ABANDONED | 0 | 0 |
82101,1 | Fix drawing paths with constant opacity onto PDF | stable | qt/qtbase | Status: MERGED | +2 | 0 |