title: Reading own metadata within a Qt plugin class
body: <p>I am currently writing my own Qt plugin to be used in a Qt program. To identify the plugin version information, I use the metadata as stored in the JSON file like the following:</p>
  
  <pre><code>{
      "type" :            "communication",
      "name" :            "USB-LIN-IB",
      "longname" :        "USB-LIN Communication",
      "version" :         "1.1",
      "dependencies" :    []
  }
  </code></pre>
  
  <p>To access these metadata information from outside the plugin classes (within the Qt program world), I fall back on them as I have defined the JSON file like this:</p>
  
  <pre><code>Q_PLUGIN_METADATA(IID "org.plugins.communications.1" FILE "USBLINCommunication.json")
  </code></pre>
  
  <p>Is it possible to use a standardized and convenient way to access exactly the same metadata from within the plugin member (e.g. the plugin constructor)?
  Of course, I could either use the QPluginLoader (for which I have to know the plugin file path) or a file readAll from a JSON Object. However, both methods rely on knowing the exact path of the plugin and the JSON file. This is not very reliable for me. </p>
  
  <p>I thought there is another more standardized way?</p>