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. setting the EGLFS environment variables on the Raspberry Pi 3
QtWS25 Last Chance

setting the EGLFS environment variables on the Raspberry Pi 3

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 746 Views
  • 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.
  • A Offline
    A Offline
    ahmedawad
    wrote on last edited by
    #1

    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

    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