Arthuro_Adam
|
2012-03-07
, 10:30
|
Posts: 136 |
Thanked: 19 times |
Joined on Nov 2011
@ Hungary
|
#371
|
|
2012-03-07
, 10:57
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#372
|
And my code is an example for how to get this information in the correct way on Maemo5, relying on hildon-desktop force-rotation option is a hack. Would you mind to share how exactly you are doing it now?
The Following 2 Users Say Thank You to DavyP For This Useful Post: | ||
|
2012-03-07
, 12:18
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#373
|
|
2012-03-07
, 12:42
|
Posts: 5,795 |
Thanked: 3,151 times |
Joined on Feb 2007
@ Agoura Hills Calif
|
#374
|
|
2012-03-07
, 12:53
|
Posts: 3,074 |
Thanked: 12,960 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#375
|
I basically intercept window resize events with resizeEvent(QResizeEvent* event).
I use this both to capture going fullscreen or normal screen, but also for screen rotations.
I agree that the forcerotation was a hack. And I was able to get rid of that by adding setAttribute(Qt::WA_Maemo5AutoOrientation, true); But I don't need another signal/slot to figure out whether I am in portrait or landscape mode (I just care about the window ize).
So thanks for the feedback.
Davy
The Following 2 Users Say Thank You to freemangordon For This Useful Post: | ||
|
2012-03-07
, 16:22
|
Posts: 136 |
Thanked: 19 times |
Joined on Nov 2011
@ Hungary
|
#376
|
It seems that setAttribute(Qt::WA_Maemo5AutoOrientation, true);
does not compile for MeeGo ('WA_Maemo5AutoOrientation' is not
a member of 'Qt'). So I had to '#ifdef Q_WS_MAEMO_5' that
instruction.
The latest build of today is available on
http://davy.preuveneers.be/phoneme/public/maemo/deb/
Though on the N9, I don't think you will see any auto-rotation.
There seems to be an approach to wrap QWidgets in a QML
project to support auto-rotation.
http://www.developer.nokia.com/Commu...d-N9-qt-Widget
I will first have a look at that before I go and restart rewriting the
UI frontend.
Davy
|
2012-03-07
, 16:38
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#377
|
Well, stritly speaking, you should not rely on your window size to decide if you are landscape or portrait, that is why desktop size is. Anyway, it is up to you.
When I am back home I will post some other Maemo5 specifics for fullscreen that might boost performance even further.
The Following User Says Thank You to DavyP For This Useful Post: | ||
|
2012-03-07
, 18:14
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#378
|
|
2012-03-07
, 19:19
|
Posts: 136 |
Thanked: 19 times |
Joined on Nov 2011
@ Hungary
|
#379
|
Another request for N9 owners:
In my latest meego build available from http://davy.preuveneers.be/phoneme/public/maemo/deb/
I added some sound feedback for MIDP alerts. As the N9 emulator
does not seem to be producing any sound, could you check if you hear
anything when running the microemu demo midlet (Alert->Alarm alert etc).
You are supposed to hear some wav samples from /usr/share/sounds/ui-tones/
snd_default_beep.wav
snd_warning.wav
snd_information.wav
snd_query.wav
snd_warning_strong.wav
Thanks,
Davy
|
2012-03-07
, 20:06
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#380
|