Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is there any way to use Qt to display PDFs or MS Office documents?
Qt 6.11 is out! See what's new in the release blog

Is there any way to use Qt to display PDFs or MS Office documents?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 4 Posters 741 Views 1 Watching
  • 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.
  • SammyCatS Offline
    SammyCatS Offline
    SammyCat
    wrote on last edited by aha_1980
    #1

    I would like to build a cross-platform app with Qt that enables the user to view various document formats especially PDF, Word & Excel.

    Is there any way that this can be achieved with Qt either using native features or 3rd-party libraries (especially if for example MS Office apps are not installed on the actual device)?

    Thanks,

    Sammy

    jsulmJ 1 Reply Last reply
    0
    • SammyCatS SammyCat

      I would like to build a cross-platform app with Qt that enables the user to view various document formats especially PDF, Word & Excel.

      Is there any way that this can be achieved with Qt either using native features or 3rd-party libraries (especially if for example MS Office apps are not installed on the actual device)?

      Thanks,

      Sammy

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @SammyCat You can't do that directly with Qt.
      For PDF see https://wiki.qt.io/Handling_PDF there are some libraries mentioned.
      Don't know about any libs for Microsoft Office files (maybe LibreOffice project provides some).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by Christian Ehrlicher
        #3

        Not for MSOffice but PDF can be shown with poppler (LGPL)
        /edit: it's under GPL, not LGPL

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        Pablo J. RoginaP 1 Reply Last reply
        4
        • Christian EhrlicherC Christian Ehrlicher

          Not for MSOffice but PDF can be shown with poppler (LGPL)
          /edit: it's under GPL, not LGPL

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @Christian-Ehrlicher said in Is there any way to use Qt to display PDFs or MS Office documents?:

          PDF can be shown with poppler (LGPL)

          yes, specially the Qt5 port

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          2

          • Login

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