STM32MP157C QT Quick portrait orientation
Unsolved
QML and Qt Quick
-
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!