
martin.grimme at gmail
Oct 16, 2009, 4:59 AM
Post #3 of 6
(798 views)
Permalink
|
|
Re: How to switch an app to portrait mode (Qt)? Xrandr?
[In reply to]
|
|
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>: > 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>: >> 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 >> https://lists.maemo.org/mailman/listinfo/maemo-developers >> > _______________________________________________ maemo-developers mailing list maemo-developers [at] maemo https://lists.maemo.org/mailman/listinfo/maemo-developers
|