[Development] Please do not remove QtWebkit from 5.6 official binaries

Knoll Lars Lars.Knoll at theqtcompany.com
Sat Dec 5 11:50:23 CET 2015



On 03/12/15 15:09, "Development on behalf of Edward Sutton" <development-bounces at qt-project.org<mailto:development-bounces at qt-project.org> on behalf of edward.sutton at subsite.com<mailto:edward.sutton at subsite.com>> wrote:

Will Qt 5.6 have alternative methods to export HTML to PDF that support major platforms of Android, iOS, Linux, OS X, and Windows?

On iOS a Qt developer must resort to native code to generate PDF files.

Unfortunately Qt 5.5 PDF export is dependent on QPrinter which is not supported on iOS.  While iOS can create and displays PDF’s just fine, iOS has no printer support.


In the future, Is it possible the PDF creation dependency could be separated from QPrinter?  So that Qt PDF generation would have better cross-platform support?


    QPrinter printer(QPrinter::ScreenResolution); // QPrinter not supported on iOS

    printer.setOutputFormat(QPrinter::PdfFormat);

    printer.setOutputFileName(pdfFileName);

    drawReport(printer);

    m_painter.end();


Without understanding internals of PDF file creation, it feels like PDF creation should not be dependent on QPrinter?

We have an alternative to using QPrinter since Qt 5.0. Please have a look at QPdfWriter. It's in Qt Gui, fully platform independent and should just work on iOS.

Cheers,
Lars



-Ed


On Dec 3, 2015, at 7:37 AM, Mark De Wit <mark.dewit at iesve.com<mailto:mark.dewit at iesve.com>> wrote:

Thanks for all the feedback everyone.

We are excited about the 5.6 release because we are looking closely at the new Qt3D module, as well as migrating to VS 2015.  Sadly, PDF export of HTML content is a critical feature for our product (in general I’m happy to move to WebEngine, but we cannot remove output functionality from our software).

Building from source would be an option, I guess.  We have done it in the past, but the build process / flags (for distribution) is not sufficiently well documented, and starting with 5.5.1 we were excited to be able to use official binaries.

Kind regards,
Mark

From: Turunen Tuukka [mailto:tuukka.turunen at theqtcompany.com]
Sent: 03 December 2015 12:30
To: Mark De Wit <mark.dewit at iesve.com<mailto:mark.dewit at iesve.com>>; development at qt-project.org<mailto:development at qt-project.org>
Subject: RE: [Development] Please do not remove QtWebkit from 5.6 official binaries


Hi Mark,

If you need to use Qt Webkit, then it is probably better to stay with Qt 5.5. There is nothing that makes Qt 5.5 bad overnight, if it works for you now. Qt WebEngine is in many aspects already much better in features than Qt Webkit. Qt WebEngine is also better maintained, and does receive much more improvements and security fixes than Qt Webkit. Even though some features of Qt WebKit are not in same way available with Qt WebEngine, it is overall a better choice. Qt Webkit is removed from Qt 5.6 because it is no longer maintained well enough to be part of an official Qt release. We are also not developing and testing it to work with Qt 5.6.

Yours,

                          Tuukka

From: Development [mailto:development-bounces at qt-project.org] On Behalf Of Mark De Wit
Sent: torstaina 3. joulukuuta 2015 13.18
To: development at qt-project.org<mailto:development at qt-project.org>
Subject: [Development] Please do not remove QtWebkit from 5.6 official binaries

Hi all,

QtWebEngine does not yet have feature parity with QtWebkit.  For instance, print support (especially export to PDF) is a critical requirement for my use of Webkit.  This missing feature prevents me from migrating to WebEngine.

Removing webkit from the official distribution will prevent me (and surely others) from upgrading to 5.6.

Thanks,
Mark
_______________________________________________
Development mailing list
Development at qt-project.org<mailto:Development at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/development

This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20151205/0d8c1d04/attachment.html>


More information about the Development mailing list