I am developping a qt5 application on my raspberry pi on raspbian using cross compilation.
When I run it, I get a black screen trying display a Pop-up which is a QFra
I just put something like
export QT_QPA_EGLFS_PHYSICAL_WIDTH=myWidth
QT_QPA_EGLFS_PHYSICAL_HEIGHT=myHeight
QT_QPA_EGLFS_DEPTH=myDepth
in my .bashrc to get rid of those errors. Also the physical width and height are in millimeters not pixels, and screen depth is color depth of your display (18 in my case).