View Single Post
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#10
I just migrated from PySide to PyQt and I can't seem to get Portrait mode to work.
This is how I did it on pyside, and it worked fine:
Code:
from PyQt4.QtCore import *
from PyQt4.QtGui import *

...

self.setAttribute(Qt.WA_Maemo5PortraitOrientation, True)
but this does nothing. I saw that there is the maemo5 module, but
from PyQt4.QtMaemo5 import *
didn't affect the outcome in any way.

Any ideas? (I want manual rotation btw)
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.