The assumption that the plugin dir is libdir + plugins is wrong Use the correct Qt API to get all of the plugin search paths (cherry picked from commit 5807e4de)