And how do you expect to receive events if you are inside an infinite loop?
How about just processing events in a "normal way"? By subclassing or using an even filter, that is..
And how do you expect to receive events if you are inside an infinite loop?
How about just processing events in a "normal way"? By subclassing or using an even filter, that is..
Originally Posted by jpn
i didnt get that...
can u explain it...
mahe2310
But why do you want to start your endless loop in the contructor and not just call it normally?
But even so it would not work.
What jpn means is, if the main event loop is stuck in your endless loop, it will never have time to attend the events.
You should use an event filter.
http://doc.trolltech.com/4.1/qobject...allEventFilter
The above link is to the normal Qt4, but look the same in QTopia docs, I think it should be the same or very similar.
Bookmarks