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:

{
    "type" :            "communication",
    "name" :            "USB-LIN-IB",
    "longname" :        "USB-LIN Communication",
    "version" :         "1.1",
    "dependencies" :    []
}


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:

Q_PLUGIN_METADATA(IID "org.plugins.communications.1" FILE "USBLINCommunication.json")


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. 

I thought there is another more standardized way?


Question: Saturated Density Plots
Answer: Borrowing Murta's data we can also try out Rahul Narain's Log recommendation:

data = Table[Exp[-10 (x^2 + y^2)], {x, -1, 1, 0.02}, {y, -1, 1, 0.02}];

ListDensityPlot[data]

ListDensityPlot[Log @ data]


 

If your data is in the (x,y,z) form you will need something like {#, #2, Log@#3} &amp; @@@ data as Kuba comments above.