Application hangs after using up/down arrows in scrollbar of scrollarea widget
-
How huge is this QScrollArea ?
-
-
Can you provide a minimal compilable example that reproduces this behavior ?
-
I tested the example code in Qt and it works fine on the target board. I am using linuxfb platform. Could this be something to do with the environment variables?
-
This post is deleted!
-
This post is deleted!
-
@Vidya-H If the Qt example is working properly on the target then it means that something is wrong with your application.
Not knowing more about it, one classical way to find the issue is to remove everything from the application then add gradually things back until it breaks again.
-
Okay. I added delay of 20 millisecond when scroll bar value changed. I am seeing performance improvement with this. The application hang frequency has reduced drastically. Is this a correct approach? Please suggest.
-
No it's not a correct approach.
You have to find what is currently slowing down your application.
Like I wrote above, the most basic version of it is starting from scratch adding your elements one at a time to determine what is going wrong.
Another option is to instrument your application and analyse it with a tool such as Hotspot. -
Thank you for the support. I will use this tool for further analysis.
13/14