Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. STM32MP157C QT Quick portrait orientation
Forum Updated to NodeBB v4.3 + New Features

STM32MP157C QT Quick portrait orientation

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 115 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
    ke-po
    wrote on last edited by
    #1

    Hello everyone :)

    I'm working on an STM32MP157C board running Yocto Linux with Wayland and eglfs. I have a 7-inch LCD screen connected via the MPI port.

    Issue:
    I'm trying to rotate the screen to portrait mode using QML, but I can't seem to get it working correctly. My goal is to:

    Develop the UI in portrait mode using the Qt Designer tab.
    Run and debug the application on the board in portrait mode.
    

    Currently, the only mode that works as expected is landscape. When I attempt to rotate the LCD screen:

    Half of the display appears rotated (portrait) but goes out of bounds.
    The other half remains white—this behavior seems quite strange.
    

    I also tried using eglfs rotation but later found in the documentation that it does not affect QML applications.

    I managed to set the orientation correctly using Qt Widgets, but I can't achieve the same result with QML.

    Setup:

    QMake version: 3.1
    Qt version: 5.14.1 (located in /usr/lib)
    

    Questions:

    Do I need to adjust any configuration on my board to support portrait mode correctly?
    Can someone provide a working example of how to set up screen rotation for QML in this setup?
    

    Any help would be greatly appreciated. Thank you!

    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