Load a QT Plugin from memory?



  • 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.


  • Lifetime Qt Champion

    Hi,

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.