Results 1 to 3 of 3

Thread: Full path and filename of a Qt Plugin at runtime

  1. #1
    Join Date
    May 2008
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Full path and filename of a Qt Plugin at runtime

    Hi,

    Is there a way to know the full path of a Qt Plugin in the constructor of the plugin interface at runtime? I would like to load some files in the same directory of the dll/so.

    Thanks a lot!
    Benoit

  2. #2
    Join Date
    May 2009
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Full path and filename of a Qt Plugin at runtime

    I was needing it to, I wasn't able to find a way. I have modified my interface to include this path in a initialize function called just before install the plugin to complete the basic steps from the constructor.

  3. #3
    Join Date
    May 2008
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Full path and filename of a Qt Plugin at runtime

    Ok thanks a lot !
    What is nice with interfaces is that the constructor is called only once at the first object
    creation. So I was sure to load the data only once. I guess that in my subroutine
    "initialize", i will have to test whether the plugin has already been initialized or not,
    to avoid multiple calls to 'initialize' and to avoid loading multiple times the data.

    Thanks!
    Ben

Similar Threads

  1. QtWebKit plugin path
    By Strongoloid in forum Qt Programming
    Replies: 4
    Last Post: 5th February 2013, 15:15
  2. Plugin LIBS path not found
    By vieraci in forum Qt Programming
    Replies: 7
    Last Post: 5th August 2009, 14:32
  3. Replies: 2
    Last Post: 19th May 2009, 09:30
  4. Qt4 plugin path problem
    By david.corinex in forum Installation and Deployment
    Replies: 6
    Last Post: 5th January 2008, 16:10
  5. Replies: 5
    Last Post: 21st February 2007, 22:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.