Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to enable pdf/pdfwidgets modules when building qt-everywhere 5.15.11?
Forum Updated to NodeBB v4.3 + New Features

How to enable pdf/pdfwidgets modules when building qt-everywhere 5.15.11?

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • oblivioncthO Offline
    oblivioncthO Offline
    oblivioncth
    wrote on last edited by
    #1

    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.

    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

    QT += pdf pdfwidgets
    

    in a given project.

    I see instructions for building them specifically out of the qtwebengine submodule with qmake here: https://wiki.qt.io/QtPDF_Build_Instructions

    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.

    Qt PDF:
     Support V8 ............................. no
     Support XFA ............................ no
    <...>
    
    Qt PDF Widgets:
     Support Qt PDF Widgets ................. yes
    

    and simply using "-webengine-printing-and-pdf" doesn't seem to cut it.

    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?

    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?

    1 Reply Last reply
    0
    • oblivioncthO Offline
      oblivioncthO Offline
      oblivioncth
      wrote on last edited by oblivioncth
      #2

      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.

      I'll try this out with 5.15.2 and report back.

      EDIT:
      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:

      -no-build-qtwebengine-core
      

      if you don't need the rest of Web Engine, and

      --feature-pdf-v8
      

      if you need V8 and XFA support (it turns on both).

      If you want to remove some parts of XFA, in addition to the above use (for example to disable TIFF XFA support):

      --no-feature-pdf-xfa-tiff
      

      Had to find the configure parameters in this commit: https://codereview.qt.nokia.com/c/qt/qtwebengine/+/271551/11

      :)

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved