[maemo-developers] How to force landscape mode in Qt 4.6.2?
From: Ram Kurvakat rkmaemo at gmx.comDate: Tue Jun 8 14:10:46 EEST 2010
- Previous message: How to force landscape mode in Qt 4.6.2?
- Next message: How to force landscape mode in Qt 4.6.2?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
sorry my browser acts funny sometimes so my previous message was incomplete... one way would be to disable the accelerometer, saves battery as well if its not needed. QDBusConnection::systemBus().call(QDBusMessage::createMethodCall(MCE_SERVICE, MCE_REQUEST_PATH, MCE_REQUEST_IF, MCE_ACCELEROMETER_DISABLE_REQ)); -krk969 ----- Original Message ----- From: Sascha Mäkelä Sent: 06/08/10 09:37 AM To: maemo-developers Subject: How to force landscape mode in Qt 4.6.2? Hi, In my app I have setAttribute(Qt::WA_Maemo5AutoOrientation, true) in the main.cpp. The auto orientation works fine. However, I have some stacked windows that I want to display only in landscape. I've tried using setAttribute(Qt::WA_Maemo5LandscapeOrientation, true) when creating the window or in the window it self, but it doesn't seem to have any effect. How can I force some of the windows to be only landscape? Cheers, Sascha -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100608/926cad2b/attachment.htm>
- Previous message: How to force landscape mode in Qt 4.6.2?
- Next message: How to force landscape mode in Qt 4.6.2?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]