In qt document, it wrote:
Warning: Calling resize() or setGeometry() inside resizeEvent() can lead to infinite recursion.
but when I debug this, for example, making some breakpoints inside resizeEvent(), which calls setGeometry(), it doesn't cause the infinite loop. I use carbide and symbian sdk plus qt 4.7.
Further more: IF it causes infinite loop, why below example from forum nokia deosn't?
http://wiki.forum.nokia.com/index.ph...g_with_QWidget
It has same kind of mechnism, when the resize event comes, it goes to the QtEggAlarm::eventFilter first, then the function SetScreenSizeAndPosition is called, inside, it resets the geometry, then it will trigger anther resize event, which will go to filter again....
so my conclusion is that the qt document is wrong?
Bookmarks