View Single Post
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#7
I face the problem that, when I open a shared library in a program, it always switches to landscape.

More detailed:
Using QMaemo5Rotator as mentioned in this post for rotation.
If I open the shared library to set date and time (libcpdatetime.so):
Code:
osso_context_t *osso;
osso = osso_initialize("appname", "", TRUE, NULL);
osso_cp_plugin_execute(osso, "libcpdatetime.so", this, TRUE);
it shows the date/time dialog, but always jumps to landscape.
The CSSU version of the control panel / settings also uses this shared library if you choose "date and time", but in that case it autorotates like I want to. Unfortunally for me, this program is made in GTK, not QT, so the source is not that helpfull.

Any suggestions how to make autorotate work here?