[maemo-developers] How to force landscape mode in Qt 4.6.2?
From: Ram Kurvakat rkmaemo at gmx.comDate: Tue Jun 8 14:36:53 EEST 2010
- Previous message: How to force landscape mode in Qt 4.6.2?
- Next message: How to get kinetic scrolling working using Qt creator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
also I think you need to setAttribute(Qt::WA_Maemo5AutoOrientation, true) on a QMainWindow to set that to landscape afterwards. Haven't checked if its a widget/application attribute also. -krk969 ----- Original Message ----- From: Ram Kurvakat Sent: 06/08/10 12:10 PM To: Sascha Mäkelä, maemo-developers Subject: Re: How to force landscape mode in Qt 4.6.2? 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/91f42857/attachment.htm>
- Previous message: How to force landscape mode in Qt 4.6.2?
- Next message: How to get kinetic scrolling working using Qt creator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]