Another thing that isn't very well documented in Qt5.
There are two solutions:
1. Create a file named "qt.conf". Put this in the same directory as your executable. Put this in it:
[Paths]
Plugins=<path to where you want to install shared plugins>/plugins
[Paths]
Plugins=<path to where you want to install shared plugins>/plugins
To copy to clipboard, switch view to plain text mode
Then, create a directory called "plugins" in the shared plugins location, and a subdirectory "platforms" inside that. From your Qt distribution, find this same directory, and copy the file "qwindows.dll" from that directory into your own platforms directory.
In this case, your installation looks like:
/YourAppInstallFolder
- YourApp.exe
- any needed Qt DLLs
- qt.conf
/YourSharedPluginsInstallFolder
- /plugins
- /platforms
qwindows.dll
/YourAppInstallFolder
- YourApp.exe
- any needed Qt DLLs
- qt.conf
/YourSharedPluginsInstallFolder
- /plugins
- /platforms
qwindows.dll
To copy to clipboard, switch view to plain text mode
2. You can create the /plugins/platforms directory as a sub-directory of your application install directory, and put the dll there.
In this case, your installation will look like this:
/YourAppInstallFolder
- YourApp.exe
- any needed Qt DLLs
- /plugins
-/platforms
- qwindows.dll
/YourAppInstallFolder
- YourApp.exe
- any needed Qt DLLs
- /plugins
-/platforms
- qwindows.dll
To copy to clipboard, switch view to plain text mode
Hope this helps.
Bookmarks