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 <vivai...@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@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to