View Single Post
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#372
Originally Posted by freemangordon View Post
And my code is an example for how to get this information in the correct way on Maemo5, relying on hildon-desktop force-rotation option is a hack. Would you mind to share how exactly you are doing it now?
I basically intercept window resize events with resizeEvent(QResizeEvent* event).

I use this both to capture going fullscreen or normal screen, but also for screen rotations.

I agree that the forcerotation was a hack. And I was able to get rid of that by adding setAttribute(Qt::WA_Maemo5AutoOrientation, true); But I don't need another signal/slot to figure out whether I am in portrait or landscape mode (I just care about the window ize).

So thanks for the feedback.

Davy
 

The Following 2 Users Say Thank You to DavyP For This Useful Post: