How to change layout on QMainWindow on maemo when device is rotated?
Mobile and Embedded
7
Posts
5
Posters
5.2k
Views
1
Watching
-
"QDesktopWidget::resized()":http://doc.qt.nokia.com/4.6/qdesktopwidget.html# should tell you when the screen resolution changes (and it does when rotating the device, since width and height are swapped).
However, if you use Qt layouts, the widgets should automatically adapt to the new screen resolution.
-
Hello,
Others have cover the layout, the new "Sensor API":http://doc.qt.nokia.com/qtmobility-1.0/sensors-api.html from the Qt Mobility project may be of interest too. In addition to QOrientationSensor, it has QAccelerometer.
-jk