Run the Qt application on a computer without Qt installed. QCamera does not see available devices

I am developing a Network / Gui application. I am testing an application on another computer that does not have Qt. But when I launch the application, QCamera :: availableDevices () returns an empty list. When I run this application on a computer with Qt installed, it returns a list with all the cameras on this computer.

I think the problem is the QMultimedia back-end plugin, which does not load automatically. How can I get a list of downloaded Qt plugins?

+4
source share
1 answer

You can try using the qt.conf file approach to locate the dependent plugins. As Qt says:

Without qt.conf, Qt libraries will use hard-coded paths to search for plugins, translations, etc. These paths may not exist on the target system, or they may not be available. Because of this, you need qt.conf so that the Qt libraries look elsewhere.

How to use qt.conf

+4
source

All Articles