![]() |
2012-03-05
, 22:08
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#362
|
Thanks for the help. I found this on another website,
http://www.mynokian900.com/2011/03/p...r-maemo-5-cssu
but I don't have these options, only:
-Clock & Alarms
-Profile
-Internet connection
-Bluetooth
-USB connected
I guess I need to install a package called status-area-orientationlock-applet to enable this feature
Davy
The Following User Says Thank You to DavyP For This Useful Post: | ||
![]() |
2012-03-05
, 22:27
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#363
|
I managed to eventually find the problem with the app I posted about earlier. It had some language definitions in the .jad file and one of these had a tab instead of a space which phoneme didn't seem to like, although it worked like that on the N8. I don't know whether that is something that is technically against spec but is permitted in some implementations.
The only slight issues I have now is that the menus in the app are a little small to be touch friendly, and I would prefer if the keyboard automatically appeared when the field was selected or was permanently shown.
The Following User Says Thank You to DavyP For This Useful Post: | ||
![]() |
2012-03-06
, 20:32
|
Posts: 136 |
Thanked: 19 times |
Joined on Nov 2011
@ Hungary
|
#364
|
![]() |
2012-03-06
, 21:30
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#365
|
I tried the latest build on N9. It's great, it didn't overwrite Opera Mini, so all settings remain. It works properly in portrait mode too.
One thing is missing: usage of accelerometer. If you want to change between portrait and landscape mode you have to do it in the settings.
Thanks for your work.
The Following 2 Users Say Thank You to DavyP For This Useful Post: | ||
![]() |
2012-03-06
, 23:39
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#366
|
![]() |
2012-03-07
, 07:43
|
Posts: 136 |
Thanked: 19 times |
Joined on Nov 2011
@ Hungary
|
#367
|
![]() |
2012-03-07
, 07:51
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#368
|
I did some investigation, and it seems that Qt4 applications based on
QWidget() don't auto-rate on MeeGo. Unfortunately, that is what I use.
So, for auto-rotation to work on the N9, the UI front-end needs to be
rewritten using the MeeGo Touch APIs.
Davy
setAttribute(Qt::WA_Maemo5AutoOrientation, true); connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(orientationChanged()));
QRect screenGeometry = QApplication::desktop()->screenGeometry(); setUpdatesEnabled(false); if (screenGeometry.width() > screenGeometry.height()) { /* Do landscape stuff */ } else { /* Do portrait stuff */ } setUpdatesEnabled(true);
The Following 3 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2012-03-07
, 08:12
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#369
|
Well, no idea how it is on Harmattan, but judging from my experience with Qt on Maemo5, one should listen to QDesktopWidget::resized signal and decide on current orientation. You have CSSU with forced rotation enabled, so h-d rotates applications no matter if they want to be rotated. Don't rely on that. The correct way is:
in you MainWindow::MainWindow() you should:
and in orientationChanged() slotCode:setAttribute(Qt::WA_Maemo5AutoOrientation, true); connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(orientationChanged()));
Code:QRect screenGeometry = QApplication::desktop()->screenGeometry(); setUpdatesEnabled(false); if (screenGeometry.width() > screenGeometry.height()) { /* Do landscape stuff */ } else { /* Do portrait stuff */ } setUpdatesEnabled(true);
The Following 2 Users Say Thank You to DavyP For This Useful Post: | ||
![]() |
2012-03-07
, 08:22
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#370
|
I do it a bit differently. I actually don't care if I am in landscape or
portrait mode. If I just get informed after rotation, that the window
width and height has changed, that is all I need.
Based on what I have read, it is a limitation of pure Qt4 on MeeGo.
The MeeGo SDK has APIs that are somewhat similar to Qt4. I
might have a go at implement it myself, but have no way to test
auto-rotation with the emulator so you guys could give me a hand
with that.
Davy
The Following 2 Users Say Thank You to freemangordon For This Useful Post: | ||
The only slight issues I have now is that the menus in the app are a little small to be touch friendly, and I would prefer if the keyboard automatically appeared when the field was selected or was permanently shown.