Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Fix image orientation as per app orientation
raj.qtdev last edited by
I have locked my application's orientation to portrait. On first screen, I showing an image of size 360x640 to fit the screen in a QLabel. When I launch the app keeping phone in landscape mode, app window launches in portrait mode as I have locked it in the begining and that is fine but the image appears scaled for landscape mode. I have set @setScaledContents(false)@ as well as used @setFixedHeigh()@ @setFixedHeight@ but didn't work.
What shall I do to simply show the image even if the user is holding the phone is landscape orientation.