Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Pdf viewer using QDesktopServices
Forum Updated to NodeBB v4.3 + New Features

Pdf viewer using QDesktopServices

Scheduled Pinned Locked Moved Mobile and Embedded
25 Posts 4 Posters 9.6k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #15

    Desktop Environment: KDE, Gnome, LXDE etc…
    The file type/program association is not something that is automagical, your desktop environment has settings where this information is stored so when you double click on a document/media/whatever it opens one application. QDesktopEnvironment uses these services when available.

    For viewing PDFs, you need to use an external library like poppler

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChaitraMohan
      wrote on last edited by
      #16

      Yes I have Gnome Desktop environment.
      When I double click on the document, it opens with application also. Still when I run the application that statement pops up.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #17

        Not on your target, otherwise you wouldn't be using QWS

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChaitraMohan
          wrote on last edited by
          #18

          On my target itself I have gnome running.
          When I double click on the pdf it opens using evince application.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #19

            Then if your target is running Gnome, why do you use Qt for Embedded Linux ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ChaitraMohan
              wrote on last edited by
              #20

              I want to run a Qt application, that opens pdf while I am running the application.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #21

                That point is clear. My question is why don't you use a standard Qt, since you already have Gnome running on your target ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  ChaitraMohan
                  wrote on last edited by
                  #22

                  I don't want Qt to be installed on the target, so I have used Qt for embedded linux.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #23

                    Qt for Embedded Linux doesn't mean it won't get installed. It means that you can use Qt without a display server like Xorg

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      ChaitraMohan
                      wrote on last edited by
                      #24

                      Yes I understood that.
                      But I need to open a pdf how do I do that?

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #25

                        Have a look at poppler

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0

                        • Login

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