Which API should I use if I want to make the screen auto rotation?
Which API should I use if I want to make the screen auto rotation?
大家好。。
In order to make the application auto-rotate depending on the current device orientation, Qt::WA_Maemo5AutoOrientation must be set on a top-level widget.
Example can be found here:
http://doc.qt.nokia.com/qt-maemo-4.6...-rotation.html
Thanks for your info~ Now I am using Qt Creator 1.3.83, based on Qt 4.7.0, but every time I do a #include <QMaemo5Style> it says no such file or directory.
大家好。。
Qt Creator is only IDE, it cannot be based on Qt 4.7.0. What is your platform, which SDK do you use?
Do you have
in the project file?Code:QT += maemo5