for some reason
Qt Code:
connect(&m_timer, SIGNAL(timeout()), SLOT(updateEvents()));To copy to clipboard, switch view to plain text mode
isnt getting connected..
for some reason
Qt Code:
connect(&m_timer, SIGNAL(timeout()), SLOT(updateEvents()));To copy to clipboard, switch view to plain text mode
isnt getting connected..
I've updated code and also tested it. a slot is called normal.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
talk2amulya (18th February 2009)
yeh, i made those changes too but still updateEvents() is only getting called once, until whole of the processing is done..so no help from this either..thanks though, spirit...
actually there is only one function call(which makes further calls) that is doing all the heavy processing..and that function call is in main()..perhaps the control isnt going back to the other objects or timers cuz of it..could that be true? just cuz one particular function has to execute, the control will go nowhere else?
yes this is possible. so, try to call processEvents in that "havy" function.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Hi,
Calling "processEvents" is not a good idea. I think if you call it many times it ignore some of them.
Have you ported your heavy computation inside the thread? You will not need to call "processEvents" then. You emit SIGNALs and let the main thread do its work.
Òscar Llarch i Galán
maybe this can help you Keeping the GUI Responsive
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
that is EXACTLY what i did sm days back..and the icon animates cuz of it as desired..although intermittently ..but i had to place like 30 calls to processEvents() here and there inside it..and if i want it to be done smoothly i might need more..so thats why i was wondering there should be a better way to do it in QT..so i went with using timers and on timeout, calling processEvents(), but evidently it also has no effect..which i find really surprising...anyone has anymore info about processEvents()??or smth else that could resolve this issue?
i have already read that link..and i have tried sm of the ways that fits my needs..but none of them worked..
hi oscar,
the heavy processing code contains some GUI calls, so i cant put that in another thread.. even if it was to be done..it'd be a lot of work..i m looking for a solution that bypasses me having to change anything in the way the things are done currently
Bookmarks