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 QT_QPA_EGLFS_PHYSICAL_WIDTH & QT_QPA_EGLFS_PHYSICAL_HEIGHT

Setting QT_QPA_EGLFS_PHYSICAL_WIDTH & QT_QPA_EGLFS_PHYSICAL_HEIGHT

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 785 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.
  • G Offline
    G Offline
    GregWilsonLindberg
    wrote on last edited by
    #1

    I'm trying to run a Qt application on a 7" display with 1024 x 600 resolution. I measured the size of the display as 154mm x 96mm. At the very beginning of my main() I have:

    qputenv("QT_QPA_EGLFS_PHYSICAL_WIDTH","154");
    qputenv("QT_QPA_EGLFS_PHYSICAL_HEIGHT","96");
    

    When I start my application I get:

    evdevtouch: /dev/input/event0: Invalid ABS limits, behavior unspecified
    Can not convert "" to length, skipping line

    I don't know whether the second line is related, it may be about something else. But what is wrong with the sizes that I'm setting?

    Does anyone here have any experience with this?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Try setting these in the console where you start the application or if using Qt Creator, in the environnement variables in the Run part of the Project panel.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GregWilsonLindberg
        wrote on last edited by
        #3

        The program is running in Boot2Qt, the above is what Qt said to use to set them. It's been a while since I got that advice, I thought I'd try here first to see if anyone had any experience with this.

        It is interesting that the program runs and the touch screen works correctly.

        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