[maemo-developers] Qt Autorotation
From: Felipe Crochik felipe at crochik.comDate: Wed May 26 19:27:59 EEST 2010
- Previous message: Qt Autorotation
- Next message: Qt Autorotation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I combined the reply to all post: My application seems to start "autorotating" after I click on the application title to show the menu for the first time. I don't have to select anything and I don't do anything different on my code about the implementation of the menu. Very odd... I will have to try some different things to see if I can isolate the problem further. @Daniil: The test project works fine on my n900 @Luca: I don't think you need to set on all windows, just the top most seems to be enough. @Attila: I did not know that. Thank you Felipe -----Original Message----- From: Daniil Ivanov [mailto:daniil.ivanov at gmail.com] Sent: Wednesday, May 26, 2010 11:53 AM To: Felipe Crochik Cc: maemo-developers at maemo.org Subject: Re: Qt Autorotation Hi Felipe! Two things. Autorotation was around since N900 sales release. And this test app works for me fine in PR 1.2 without pressing anything. #include <QApplication> #include <QMainWindow> int main (int argc, char **argv) { QApplication app(argc, argv); QMainWindow win; win.setAttribute(Qt::WA_Maemo5AutoOrientation, true); win.show(); return app.exec(); } ~Daniil. On Wed, May 26, 2010 at 6:21 PM, Felipe Crochik <felipe at crochik.com> wrote: > Now that PR1.2 is out autorotation works!!! Great but. > Has anybody figured out how to control the autorotation on the application > (without the "Ctrl+shift+r")? > > The WA_Maemo5AutoOrientation only tells "the device" that you want this > application to autorotate but the user still needs to press the "shortcut" > (I have the worst time with my fat fingers) to activate/deactivate it. And > worst of all you need to do the same every time you start the application. > At least I would like to allow the user to save as a setting for later... > > Thanks, > Felipe > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers >
- Previous message: Qt Autorotation
- Next message: Qt Autorotation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]