[maemo-developers] How to switch an app to portrait mode (Qt)? Xrandr?

From: Martin Grimme martin.grimme at gmail.com
Date: Fri Oct 16 14:58:29 EEST 2009

the correct way (if the toolkit doesn't support hildon rotation) is to
use the X-Atoms




(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.


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
More information about the maemo-developers mailing list