View Single Post
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#17
Originally Posted by aspidites View Post
If it has no parent, you can just set the orientation attribute:
Code:
self.setAttribute(Qt.WA_Maemo5PortraitOrientation)
If it belongs to another widget (has a parent), you will set this attribute on its parent.

For more examples of orientation, how to use forms created with Qt Designer, or anything else, check out the source of maegym
Code is fairly clean, though I plan to refactor a few things.
errr ... I think you misunderstood me .. I'm not talking about switching to Portrait mode or anything, or that how do I popup the QDialog properly while in portrait mode ...

I'm asking how can I make the QDialog pop out from the left side of the screen (or from the right side of the screen), instead of poping out from the bottom of the screen ?

Here is a picture to show what I mean:



The bottom center arrow with a cross on it depicts the normal bottom --> up poping method .. how can I instead have vertical QDialogs that pop into view from either the left or right side of the screen ? Is this possible ?

Last edited by ahmadka; 2010-06-11 at 21:07.