setting the EGLFS environment variables on the Raspberry Pi 3
Unsolved
Mobile and Embedded
-
Hi everyone,
I have been looking very long on how to set the QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT variables on RPI3. I googled and tried to export them on my Pi, but nothing happens when I try to run my application,it runs in full screen and I get the following warnings:
Unable to query physical screen size, defaulting to 100 dpi. To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters)
it is mentioned here that EGLFS forces the first top-level window (be it either a QWidget or a QQuickView) to become fullscreen. To override this we have to use these environment variables.
I cross compiled QT 5.7.1 for raspberry pi 3 and I am using it. Please any help to set these variables correctly is appreciated.
Thanks