View Single Post
Posts: 94 | Thanked: 253 times | Joined on Jan 2010 @ Virginia
#5
Originally Posted by Venemo View Post
Hi!

Actually, the auto rotation in Qt has a bug (QtBug 11190) that makes it work incorrectly.

For a working auto-rotation sample, check out the QMaemo5Rotator class in my repo. (header, cpp)

Just copy-paste the code files. It is dead easy to use.

Code:
QMaemo5Rotator *rotator = new QMaemo5Rotator(QMaemo5Rotator::AutomaticBehavior, this);
You can change its behaviour in runtime.
Fantastic. I got this working and is exactly what I needed