qt5base-lts/tests/auto/corelib/plugin
Ulf Hermann e7e557cea2 moc: Add a standard way of specifying a URI as part of Q_PLUGIN_METADATA
Usually, when you load a plugin, you don't want to load just any plugin
that fulfills a given interface, but rather a specific one. When loading
dynamic plugins you can differentiate the plugins by file name. This
doesn't work in the static case, and file names are also separate from
the plugin metadata shipped inside the plugin files.

To solve this problem, different hacks have been developed in various
places. QML extension plugins add a special property "uri" via the -M
option of moc, QML debug plugins expect you to add a json file with
an array of "Keys", Qt Creator plugins have a "Name" in their json
files, etc.

By allowing the identifier for the plugin to be specified inline with
the metadata declaration we can make many of the above workarounds
obsolete and provide a clean way for users to find their plugins.

Task-number: QTBUG-74775
Change-Id: Ie2af16c49d4c5aa5a77fab0fae1e0a4449bd7a39
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2019-04-11 14:43:27 +00:00
..
qfactoryloader Android: Pass tst_QFactoryLoader 2018-06-30 19:32:51 +00:00
qlibrary Use msvc qmake scope where appropriate 2018-11-22 14:16:52 +00:00
qplugin Plugins: Save some architectural requirement flags 2018-09-01 15:19:46 +00:00
qpluginloader moc: Add a standard way of specifying a URI as part of Q_PLUGIN_METADATA 2019-04-11 14:43:27 +00:00
quuid Android: Pass tst_QUuid 2018-06-28 07:12:47 +00:00
plugin.pro Enable QPluginLoader test for static builds 2018-08-03 20:26:58 +00:00