The UI display problem in the thread
-
wrote on 15 Sept 2011, 05:34 last edited by
Hello,everyone.Now I need your help about the Qt application.I want to know whether the Qt can provide a method which can display all the UI in a special thread rather than in the main thread in order to avoid the update speed.
-
wrote on 15 Sept 2011, 05:40 last edited by
No, no such method is available.
-
wrote on 15 Sept 2011, 05:49 last edited by
Thank you, Andre
Now I have a project which needs update view when the status changed, but frequent changes happened obviously influence the update speed which causes the view stop. Do you have some advices about this problem? -
wrote on 15 Sept 2011, 06:14 last edited by
Considder throttleing your update frequency. That is: do not update more than 30 times per second at most. Anything faster is not going to be visible by the user anyway. That means that you can buffer updates for that time at least. Best to do this already in the thread providing the updates, as it lightens the load on the UI thread and its eventqueue. It is easy to flood the evenqueue, making the application slow to respond.
1/4