[maemo-developers] How to switch an app to portrait mode (Qt)? Xrandr?
From: Martin Grimme martin.grimme at gmail.comDate: Fri Oct 16 14:59:31 EEST 2009
- Previous message: How to switch an app to portrait mode (Qt)? Xrandr?
- Next message: How to switch an app to portrait mode (Qt)? Xrandr?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
For Diablo you should use xrandr, though. The hildon X atoms are not supported there, as there is no official rotation support. Martin 2009/10/16, Martin Grimme <martin.grimme at gmail.com>: > Hi, > > the correct way (if the toolkit doesn't support hildon rotation) is to > use the X-Atoms > > _HILDON_PORTRAIT_MODE_SUPPORT > > and > > _HILDON_PORTRAIT_MODE_REQUEST > > (CARDINAL, 32bit, value either "1" or "0") > > The SUPPORT atom is always needed on a window that allows portrait > mode. The device immediately switches back to landscape mode once it > opens a window without the SUPPORT atom. > The REQUEST atom requests portrait mode. The device remains in > portrait mode as long as the requesting window is visible and no > dialog windows above it lack the SUPPORT atom. > > > Martin > > 2009/10/16, Ville M. Vainio <vivainio at gmail.com>: >> I have a QTextBrowser that I want to show in portrait mode. How can I >> do that? Is there a solution that works with both Diablo and >> Fremantle? Should I use xrandr, or is there a "better supported" >> (higher level) way? >> >> -- >> Ville M. Vainio >> http://tinyurl.com/vainio >> _______________________________________________ >> maemo-developers mailing list >> maemo-developers at maemo.org >> https://lists.maemo.org/mailman/listinfo/maemo-developers >> >
- Previous message: How to switch an app to portrait mode (Qt)? Xrandr?
- Next message: How to switch an app to portrait mode (Qt)? Xrandr?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]