In one of my programs I use QWebView to load and print reports made from HTML documents. So while deployment I copy these libraries, in additional to all other relevant Qt libraries:
- Qt5WebKit.dll
- Qt5WebKitWidgets.dll
- Qt5PrintSupport.dll
- plugins/printsupport/windowsprintersupport.dll
After testing on destination machine I've found that printing doesn't work. Thanks for Dependency Walker I've get all the missed libraries. Here is the list:
- Qt5Multimedia.dll
- Qt5Positioning.dll
- Qt5MultimediaWidgets.dll
- Qt5Qml.dll
- Qt5Quick.dll
- Qt5Sensors.dll
- Qt5OpenGL.dll
Ok, I can understand why it wants Qt5Multimedia.dll. Browser can play sound etc. But QML! Why I need all these libraries related to QML?? I don't use neither OpenGL nor sensors or positioning. So it's just unnecessary in my case.
And so my question - is there way to deploy only libraries I need in actual fact? And get the program work of course.