<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to enable pdf&#x2F;pdfwidgets modules when building qt-everywhere 5.15.11?]]></title><description><![CDATA[<p dir="auto">I haven't used the qtwebengine addon before but I know that including it in a build is as simple as not specifying -skip-webengine.</p>
<p dir="auto">What I'd like to do though is build a full Qt package from source that includes the pdf and pdfwidgets modules so that they can be linked to by simply specifying</p>
<pre><code>QT += pdf pdfwidgets
</code></pre>
<p dir="auto">in a given project.</p>
<p dir="auto">I see instructions for building them specifically out of the qtwebengine submodule with qmake here: <a href="https://wiki.qt.io/QtPDF_Build_Instructions" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.qt.io/QtPDF_Build_Instructions</a></p>
<p dir="auto">but I was hoping there is a way to include them in a full build of Qt without having to build them separately and then add them in; however, I see that qmake in that example prints configuration status sections specific to Qt Pdf that do not appear when using configure.bat in the full package, i.e.</p>
<pre><code>Qt PDF:
 Support V8 ............................. no
 Support XFA ............................ no
&lt;...&gt;

Qt PDF Widgets:
 Support Qt PDF Widgets ................. yes
</code></pre>
<p dir="auto">and simply using "-webengine-printing-and-pdf" doesn't seem to cut it.</p>
<p dir="auto">Are the qtwebengine sources provided in the qt-everywhere packages somehow cutdown or different? Or is there a way I can build Qt PDF with that package and configure things like V8 XFA support?</p>
<p dir="auto">If I do have to build qtwebengine separately using the method in the Wiki above, can I literally just merge the output web engine binaries into my overall Qt binaries for a complete package afterwards?</p>
]]></description><link>https://forum.qt.io/topic/130384/how-to-enable-pdf-pdfwidgets-modules-when-building-qt-everywhere-5-15-11</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 23:19:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/130384.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Sep 2021 21:48:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to enable pdf&#x2F;pdfwidgets modules when building qt-everywhere 5.15.11? on Fri, 17 Sep 2021 22:50:42 GMT]]></title><description><![CDATA[<p dir="auto">Ok, looking into the source tree it seems that at least 5.15.11 doesn't include the pdf sub modules within qtwebengine, perhaps because its a LTS branch.</p>
<p dir="auto">I'll try this out with 5.15.2 and report back.</p>
<p dir="auto"><strong>EDIT:</strong><br />
Yea, my bad with this one. Make sure the sources your building from have "qtwebengine\src\pdf" and "qtwebengine\src\pdfwidgets" and then for the call to configure.bat specify:</p>
<pre><code>-no-build-qtwebengine-core
</code></pre>
<p dir="auto">if you don't need the rest of Web Engine, and</p>
<pre><code>--feature-pdf-v8
</code></pre>
<p dir="auto">if you need V8 and XFA support (it turns on both).</p>
<p dir="auto">If you want to remove some parts of XFA, in addition to the above use (for example to disable TIFF XFA support):</p>
<pre><code>--no-feature-pdf-xfa-tiff
</code></pre>
<p dir="auto">Had to find the configure parameters in this commit: <a href="https://codereview.qt.nokia.com/c/qt/qtwebengine/+/271551/11" target="_blank" rel="noopener noreferrer nofollow ugc">https://codereview.qt.nokia.com/c/qt/qtwebengine/+/271551/11</a></p>
<p dir="auto">:)</p>
]]></description><link>https://forum.qt.io/post/681042</link><guid isPermaLink="true">https://forum.qt.io/post/681042</guid><dc:creator><![CDATA[oblivioncth]]></dc:creator><pubDate>Fri, 17 Sep 2021 22:50:42 GMT</pubDate></item></channel></rss>