Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Plugins paths when launch from Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Plugins paths when launch from Qt Creator

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 293 Views
  • 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.
  • _JD__ Offline
    _JD__ Offline
    _JD_
    wrote on last edited by
    #1

    Hi,

    I developed a Qml Plugin as a dynamic library (DLL).
    I have a main project which simply loads a main.qml file.
    This qml file imports the plugin and everything works fine when executing the generated executable (plugin is found. note that the plugin is located in a folder named with the library name).

    But when I launch from Qt Creator the plugin is not found. I changed the execution folder to be at the location where the executable is launched manually. So it is exactly the same execution folder. I don't understand why the plugin is not found when launched from Qt Creator and is found when launched manually... Maybe a bug?

    I activated QT_DEBUG_PLUGINS to understand a little more. I have then traces "QFactoryLoader::QFactoryLoader() checking directory path "<ThePath>"". And <ThePath> is always the build directory (it seems that the execution directory selected in project/execute settings is not taken into account for the search pathes).

    Note also that i am using cmake.

    Anybody knows this problem? Is there a workaround?

    Thanks,
    Jérôme.

    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