How to tell Qt5 applications which platform plugin to use?

My embedded target is running Linux and has two valid platform plugins: eglfs and linuxfb. By default, all my qt applications try to download eglfs (and for some reason they don’t work). How can I get them to try linuxfb?

+5
source share
1 answer

By adding the "linuxfb platform" to the command line that you use to invoke the Qt5 application. Ex "./myqt5app -platform linuxfb". But linuxfb is broken as Qt5.0.1 and will be segfault.

To debug problems with the plugin, you can do "export QT_DEBUG_PLUGINS = 1" and check the printed logs.

+7
source

All Articles