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. Boot2Qt screen resolution issues on Toradex Apalis iMX6
Forum Updated to NodeBB v4.3 + New Features

Boot2Qt screen resolution issues on Toradex Apalis iMX6

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

    I've set up a Boot2Qt system on a Toradex Apalis iMX6 using QtCreator. When I load up my Qt program the resolution is completely off, it only shows the top left corner and stretches the graphics lengthwise. I'm using a 1366x768 capacitive touch screen display and my Qt program uses a number of graphics that are positioned and sized for a 1366x768 screen. It's set up using a QML front end with a C++ back end. When built and run on my host machine (Ubuntu 16.04 with a 1366x768 display) everything looks exactly how it should.

    Using QGuiApplication::primaryScreen() it seems Qt think the screen resolution is 640x480. Regardless of which screen I connect that doesn’t seem to change, different resolution screens just change how the graphics are stretched but it still shows the same top left quarter of my GUI. I've also tried setting full screen on/off and changing the main window size, none of which seems to have any effect.

    From the board side of things Toradex guides have you change environment variables in Uboot to set screen size, which I've done and verified that they are saved to the correct values, but still no change.

    Interestingly enough when I build I get:
    "QT_QPA_EGLFS_PHYSICAL_HEIGHT" "768"
    "QT_QPA_EGLFS_PHYSICAL_WIDTH" "1366"
    Which is the correct screen resolution, though from my understanding resolution not what physical hight and width are supposed to represent.

    Any ideas on how I can get my Qt program to display in the correct resolution?

    1 Reply Last reply
    0
    • Cleiton BuenoC Offline
      Cleiton BuenoC Offline
      Cleiton Bueno
      wrote on last edited by
      #2

      What version of Qt5?
      Are you using X11, Wayland or EGLFS?
      Can you attach the output of the cat /proc/cmdline command here?
      And a picture of the problem on the display.


      Cleiton Bueno

      Blog | Linkedin | B2Open

      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