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. How to embed plugins?
Qt 6.11 is out! See what's new in the release blog

How to embed plugins?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 1.8k 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.
  • Mauro177M Offline
    Mauro177M Offline
    Mauro177
    wrote on last edited by
    #1

    I want to include some plugins (the imageformat plugins) as built-in modules in my build of Qt.
    How can I do this?

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

      hi and welcome
      so do you already have a static version of Qt ?
      http://dimitris.apeiro.gr/2015/06/24/build-a-static-qt5-for-windows-by-compiling/

      1 Reply Last reply
      0
      • Mauro177M Offline
        Mauro177M Offline
        Mauro177
        wrote on last edited by
        #3

        Hi mrjj.
        I'm talking about shared version of Qt. What I want is to build dll version of Qt (MSWin version), with some plugin (jpeg, tiff, png) embedded as built-in, not as external plugins. Is this possible? Why only png library is embedded and not the others?

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

          Hi
          Oh ,
          im not sure you can just make the plugins static (not using dlls)
          without making whole Qt static linked.
          If you are not static linking Qt, u still need all the other Qt dlls, so
          why you want to get rid of some few image plugins? if i may ask ?

          1 Reply Last reply
          0
          • Mauro177M Offline
            Mauro177M Offline
            Mauro177
            wrote on last edited by
            #5

            In my application I use only four Qt ddls. To reduce the deployment effort, I want to include only a minimal set of library in my setup, and avoid subfolders like plugins\imageformats on the target pc.
            What sounds strange to me is the png support in Qt. Why this library is embedded in Qt dll? Isn't possible to do the same with other library?

            mrjjM 1 Reply Last reply
            0
            • Mauro177M Mauro177

              In my application I use only four Qt ddls. To reduce the deployment effort, I want to include only a minimal set of library in my setup, and avoid subfolders like plugins\imageformats on the target pc.
              What sounds strange to me is the png support in Qt. Why this library is embedded in Qt dll? Isn't possible to do the same with other library?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              @Mauro177
              Ahh. i see.
              I think the PNG is embedded as Widgets depends on it for buttons drawing etc.
              Sort of the default format. The rest is optional and hence plugins.

              Im not aware of any way to make them static with a shared version of Qt.
              Sorry. I will ask around and see.

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

                Hi and welcome to devnet,

                AFAIK, @mrjj is right, only png is builtin. What other plugins are you interested in ?

                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