Any SIGNALs on screen rotation?
I am using qt4.6.2 for symbian with my nokia 5230 s60v5. However, when the screen rotates, the window which I create with 640*360 resolution will be very ugly.
Is there a SIGNAL on screen rotation or something like the screen resolution changed SIGNALS when the screen rotates? Or any functions can handle this situation?
thx.
Re: Any SIGNALs on screen rotation?
Are you using showMaximized() instead of hardcoding the window size?
[url]http://doc.trolltech.com/4.6/qdesktopwidget.html#resized[/url]
Re: Any SIGNALs on screen rotation?
Thank you! showMaxmized() works.
Re: Any SIGNALs on screen rotation?
To answer your original question, I vaguesly recall that there is a Symbian event that occurs on rotation and which you can somehow intercept in Qt, but no native Qt event.
Re: Any SIGNALs on screen rotation?
[QUOTE=danhicksbyron;719050]To answer your original question, I vaguesly recall that there is a Symbian event that occurs on rotation and which you can somehow intercept in Qt, but no native Qt event.[/QUOTE]
The name of the signal is QDesktopWidget::resized(int).
Re: Any SIGNALs on screen rotation?
[QUOTE=divanov;719075]The name of the signal is QDesktopWidget::resized(int).[/QUOTE]
When you rotate your device precise 180 degrees, this one will not fire.
To answer that question: There was a Qt Mobile Extension with a sensor module and such a signal.
There is a sensor API in the successor of that Mobile Extension: The Qt Mobility APIs.
There is only one drawback: If you are developing for symbian, at least the mobile extension's sensor API needed capabilities that could not be self signed. I did not check the situation for the new sensor API but I doubt that this is no longer needed.
So if you are developing for symbian and not have a developer certificate and want to use the sensor API, the development experience is worse than before because of Symbian signed online process.