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. Load a QT Plugin from memory?
Forum Updated to NodeBB v4.3 + New Features

Load a QT Plugin from memory?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 602 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.
  • P Offline
    P Offline
    primem0ver
    wrote on last edited by primem0ver
    #1

    Hi all,
    I am creating my own "plugin installer" from within the Qt application. The function of this is to read a zip, 7zip, or rar archive and locate any files that may be a plugin. If possible I would like to do this without writing the unzipped file to the hard disk first. However, the QPluginLoader doesn't seem to support this ability. Can I load a plugin which is decompressed into a buffer in memory?

    A quick little insight into how I am decompressing:
    I am using libarchive to decompress the file. The file is decompressed to either a char* or a byte* using the malloc function to reserve memory equivalent to the size of the file. I need to be able give QPluginLoader access to that block of memory.

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

      Hi,

      AFAIK, no, plugins are loaded from the disk. What kind of plugin are you writing ?

      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
      1

      • Login

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