Solved rotate Qt application without scaling
-
Hello,
We plan to develop 2 different qt application for 2 different screen states:
- screen state of 320x240 (320 - horizontal)
- screen state of 240x320 (240 - horizontal)
The screen knows only how to display images as 240x320 (and framebuffer is defined accordingly)
I would like to ask if it is possible to develop Qt application in 320x240 and push it into framebuffer as rotated, as the framebuffer and screen controller expects: 240x320 .
It should be retated without any scaling.Best Regards,
Ran -
@ranshalit
i think you should be more specific. What kind of device are you developing for. On what platform?From this point of view it should be enough to call setFixedSize() on your mainwindow?
-
@raven-worx said:
setFixedSize()
Hi,
I work on TI's DM8148 (omap/davinci family), which is connected to LCD 240x320
We want to use the screen in 2 types . The basic type which already works is 240x320 (we name it "vertical state" ).
But now we want to use it as 320x240 (we name it "horizontal state" ). I mean by that that the text for example will befor example: this is image I want to see in 320x240 :
https://drive.google.com/file/d/0B22GsWueReZTT29UTjBPZXcxRkE/view?usp=sharingUnfortunately the HW does not support rotatation.
Is there any option of rotation with Qt (I guess it will be some kind of software rotation) ?Regards,
Ran -
i am afraid there is no simple solution to your problem.
For a Qt-only solution there is no way around using QPA (Qt Platform Abstraction)
Which is mostly undocumented, so you would need to work yourself to the source code. -
In Qt4 you might have a chance: https://forum.qt.io/topic/30014/qt-app-rotation-solved
In Qt5 this rotation option seems to be gone -
This post is deleted! -
@raven-worx said:
In Qt4 you might have a chance: https://forum.qt.io/topic/30014/qt-app-rotation-solved
In Qt5 this rotation option seems to be goneHi raven,
Assuming there is no rotate option....
Is there a way to develop the Qt frame somehow in rotated view ?Thanks,
Ran