Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Adding pdf as a resource in .qrc and use with in the exe
Forum Updated to NodeBB v4.3 + New Features

Adding pdf as a resource in .qrc and use with in the exe

Scheduled Pinned Locked Moved Unsolved Qt for Python
6 Posts 3 Posters 751 Views 3 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.
  • C Offline
    C Offline
    Consolidante
    wrote on last edited by
    #1

    Adding pdf as a resource in .qrc in PyQt5

    I need to add a pdf file to my resource folder, which I can open from the application with the click of a button (kind of like a Help file).

    I want to release my app to the 3rd people. So I embed this pdf in my app. How can I do that?

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

      Hi and welcome to devnet,

      Did you already saw the documentation about Qt's resources system ?

      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
        Consolidante
        wrote on last edited by
        #3

        This manual does not work for python. I am not developer. I just know python and trying to write GUI.

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

          The starting point is the same, create a .qrc file. Then you have pyside2-rcc that will generate the python code from the .qrc file.

          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
          2
          • L Offline
            L Offline
            lopoloki
            wrote on last edited by lopoloki
            #5

            @Consolidante said in Adding pdf as a resource in .qrc and use with in the exe:

            I want to release my app to the 3rd people. So I embed this pdf in my app. How can I do that?

            https://tutuapp.uno/ https://9apps.ooo/ https://showbox.kim/

            I want to release my app to the 3rd people. So I embed this pdf in my app. How can I do that?

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

              Hi,

              Read the first answer I gave.

              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