Important: Please read the Qt Code of Conduct -

Q_PLUGIN_METADATA with json file not updating when json file changes

  • Using a json file for Q_PLUGIN_METADATA and generally it works fine. However, when I change the json file I have to explicitly rebuild (clean & build) the plugin in order for moc to pick it up. I'm trying to figure out some qmake magic that would make the build system recognize that the file changed and invoke necessary tools (moc is what's needed I guess) again.

    Anyone got some hints?

Log in to reply