Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Err: Unable to query physical screen size,

    Mobile and Embedded
    1
    1
    503
    Loading More Posts
    • 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.
    • nuke
      nuke last edited by

      When I cross compile and run Qt on my Raspberry I got this error:

      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).

      I set these environment variables in my ~/.bashsrc like this but still got same error

      QT_QPA_EGLFS_PHYSICAL_WIDTH=154
      QT_QPA_EGLFS_PHYSICAL_HEIGHT=86
      QT_QPA_EGLFS_WIDTH=800
      QT_QPA_EGLFS_HEIGHT=480

      Thanks for help

      1 Reply Last reply Reply Quote 0
      • First post
        Last post