View Single Post
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#16
Originally Posted by ahmadka View Post
Alright thanks everyone for your support .. working like a charm now

One more question, how can I make the QDialog pop out from the sides, instead of from the bottom in an upward direction ?
Set the orientation attribute:
Code:
self.setAttribute(Qt.WA_Maemo5PortraitOrientation)
You will do this on the dialog's parent widget usually. Though it's possible to do this on the dialog itself, its weird to do so. It will change the orientation of the window, then once the dialog is closed, it will go back to its original orientation.

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.
__________________
aspidites | blog | aspidites@inbox.com

Last edited by aspidites; 2010-06-11 at 20:59.