Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt5 eglfs screen resolution



  • Hello

    I'm currently building an Qt5 application for a 1920x720 display on a Tinkerboard running an Yocto build set to use 'eglfs'. Using 'eglfs' is still very new to me but I have used 'X11' before. So far I've been using this guide

    For those interested I'm using this : Yocto build, Which is console based.

    My main issue seems to be around the deployed application resolution if I create a basic rectangle with a size of 1920x720 and deploy that on my display the rectangle is cut short on the y-axis. Upon investigation and resizing the rectangle, the size of the deployed application is 1920x1080.

    All this was done with the below settings in the system environment.

    QT_QPA_PLATFORM=eglfs
    QT_QPA_EGLFS_INTEGRATION=eglfs_kms
    QT_QPA_EGLFS_WIDTH=1920
    QT_QPA_EGLFS_HEIGHT=720
    QT_QPA_EGLFS_PHYSICAL_HEIGHT=109.62
    QT_QPA_EGLFS_PHYSICAL_WIDTH=292.32
    QT_QPA_EGLFS_NO_LIBINPUT=1
    QT_QPA_FONTDIR=/lib/Fonts
    QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/plugins/platforms
    XDG_RUNTIME_DIR=/tmp
    

    I've found that using eglfs_kms ensures that the application will deploy. Not using 'eglfs_kms' would result in the following failure 'could not open egl display'.

    Is there something I've missed which is locking the application resolution?

    Thank you.



  • I should also add that my display is connected to the Tinkerboard via HDMI.


Log in to reply