开发者

Problem with detecting phone orientation change in Symbian/Qt

I want to do some custom processing when the orientation of the phone changes. I have re-implemented the resizeEvent(QResizeEvent*) virtual function in my class. The strange thing is, for the first开发者_开发问答 one time when the phone orientation is changed, this function is actually called, and works fine.

But all subsequent orientation changes, this function isn't even called? Why does this happen?

Are there any other ways to detect phone orientation change?

Thanks.


I suspect the original poster already knows this but it may help others. Recently the Qt Mobility project released its first set of APIs. In the Sensor APIs, you'll find QOrientationReading.


Did you have a look at resized() or workAreaResized() of QDesktopWidget?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜