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. "Unable to query physical screen size, defaulting to 100 dpi" error
Forum Updated to NodeBB v4.3 + New Features

"Unable to query physical screen size, defaulting to 100 dpi" error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 1.8k 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.
  • embdevE Offline
    embdevE Offline
    embdev
    wrote on last edited by
    #1

    Hi all,
    I receive the following error when running my Qt 5 app. Is there a way to resolve this issue?

    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    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).
    
    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      I think this is a very common problem.
      As this is the mobile & embedded forum, you might know the display and just set the variables as instructed.

      embdevE 1 Reply Last reply
      0
      • M mvuori

        I think this is a very common problem.
        As this is the mobile & embedded forum, you might know the display and just set the variables as instructed.

        embdevE Offline
        embdevE Offline
        embdev
        wrote on last edited by
        #3

        @mvuori I see, but where may I set these variables in?

        jsulmJ 1 Reply Last reply
        0
        • embdevE embdev

          @mvuori I see, but where may I set these variables in?

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @embdev In the console where you start the application.
          Or you write a shell script which sets that variables and then starts your application.
          Or you set those variables in the ~/.profile
          Or you do it system wide in /etc/profile

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          embdevE 1 Reply Last reply
          1
          • jsulmJ jsulm

            @embdev In the console where you start the application.
            Or you write a shell script which sets that variables and then starts your application.
            Or you set those variables in the ~/.profile
            Or you do it system wide in /etc/profile

            embdevE Offline
            embdevE Offline
            embdev
            wrote on last edited by
            #5

            @jsulm thanks for the advice! But do you know why how this error arise?

            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