Active Topics

 


Reply
Thread Tools
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#11
Originally Posted by mece View Post
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)

Hmmm random (no idea on manual though)
Code:
        win = healthcheckWindow(MainWindow)
	win.setAttribute(QtCore.Qt.WA_Maemo5StackedWindow)
	win.setAttribute(QtCore.Qt.WA_Maemo5AutoOrientation, True)
Works for me, assuming you replace auto with what you need?
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#12
Originally Posted by noobmonkey View Post
Hmmm random (no idea on manual though)
Code:
        win = healthcheckWindow(MainWindow)
	win.setAttribute(QtCore.Qt.WA_Maemo5StackedWindow)
	win.setAttribute(QtCore.Qt.WA_Maemo5AutoOrientation, True)
Works for me, assuming you replace auto with what you need?
hmm well that is exactly how I do it in the example. there is no error generated. simply nothing happens.
__________________
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.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#13
You don't need thr QMaemo5 import, but make sure you're setting the attributes of the TOP level widget, setting attributes on children will likely not work.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#14
Thanks for PyQt, your other app PyGTKEditor, and your webpage!

The slideshow presentation has lots of good info!
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800
 

The Following User Says Thank You to ArchiMark For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#15
Good news everyone ! PyQt 4.7.3 for PR1.2 is finally in Extras !

@ArchiMark: You’re welcome, though PyGTKEditor is Khertan’s work (even if I give him a tip or two on it )
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following 4 Users Say Thank You to attila77 For This Useful Post:
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#16
Does it include qt mobility ?
__________________
N900_Email_Options Wiki Page
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#17
Not yet, but upstream does seem to plan on doing it, so should be just a matter of time, as soon as there is a release with it, I'm including it, too (though I might push dev builds to extras-devel even before that).
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#18
Originally Posted by attila77 View Post
Good news everyone ! PyQt 4.7.3 for PR1.2 is finally in Extras !

@ArchiMark: You’re welcome, though PyGTKEditor is Khertan’s work (even if I give him a tip or two on it )
Oops, thanks for correcting me about PyGTKEditor....

__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800
 
lostinmirkwood's Avatar
Posts: 128 | Thanked: 232 times | Joined on Sep 2009 @ New Jersey, USA
#19
attila77, is declaring something like:

Code:
p.depends = "python2.5,  python-osso, python-dbus, python2.5-qt4-gui, python2.5-qt4-core, python-Imaging"
enough to bring in the PyQt 4.7.3 bindings or do I need to explicitly declare the version number?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#20
If you want 4.7.3 bindings, ask for 4.7.3 bindings If you do not specify versions it’s as if you said "whatever" (i.e. if someone already has an older version of PyQt installed, it won’t bother upgrading it). Long story short:

p.depends = "python2.5, python-osso, python-dbus, python2.5-qt4-gui (>> 4.7.3), python2.5-qt4-core (>> 4.7.3), python-Imaging"
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:34.