Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5 eglfs screen resolution
Qt 6.11 is out! See what's new in the release blog

Qt5 eglfs screen resolution

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    redknight106
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      redknight106
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved