Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Solution for Qt5 on Raspberry Pi 3 errors: Unable to query physical screen size.
Forum Updated to NodeBB v4.3 + New Features

Solution for Qt5 on Raspberry Pi 3 errors: Unable to query physical screen size.

Scheduled Pinned Locked Moved Solved QtonPi
1 Posts 1 Posters 1.7k 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.
  • B Offline
    B Offline
    beranudo
    wrote on last edited by
    #1

    Hi

    This is a solution to fix the problem on Raspberry Pi 3 with Qt 5.8

    1. open the bashrc: $sudo nano ~/.bashrc
    2. in the file add:
      export QT_QPA_EGLFS_PHYSICAL_WIDTH="230mm"
      export QT_QPA_EGLFS_PHYSICAL_HEIGHT="180mm"
      tip: you can try with different size, in my case I've got a display of 7" but I configure with 11.6" and looks great, the size you can check in: https://en.wikipedia.org/wiki/Display_size
    3. save the file
    4. $sudo source ~/.bashrc

    In Qt Creator ever show the error when compiling is normal, but when you run your application from console the error's gone, other tool help the application, look better use qt5ct help a lot.

    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