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. [SOLVED] Plugin name disappear in PluginLoader...
QtWS25 Last Chance

[SOLVED] Plugin name disappear in PluginLoader...

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

    Hi guys, I have found some strangeness inside QPluginLoader, When I set up the name of plugin, after set up, it does not handle the name...
    @
    QPluginLoader config;
    config.setFileName(QString("Project.Configuration"));

     qDebug() << config.fileName();    // NULL
     config.load(); // false, and thus no plugin is loaded... 
    
     // ...
    

    @

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      Please read the manual carefully, then you can get the answer.
      @
      fileName : QString
      This property holds the file name of the plugin.
      To be loadable, the file's suffix must be a valid suffix for a loadable library in accordance with the platform, e.g. .so on Unix, .dylib on Mac OS X, and .dll on Windows. The suffix can be verified with QLibrary::isLibrary().
      If the file name does not exist, it will not be set. This property will then contain an empty string.
      @

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peppy
        wrote on last edited by
        #3

        Okay thanks, I just get used to QLibrary (strips suffixes)...

        Gosh, It works, thank you :)...

        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