Use of QProgressBar in Qt 4.7.1 in Application generates infinite polling loop. How to solve?
Is your case with minimum and maximum both are set to 0?
@Tinu Can you show how you're using QProgressBar? Else it is hard to say what is wrong.
Sorry for the delayed reply.
The min n max are 0 and 100.
Using the QtCreator Editor I have just placed the QProgessBar widget. It is not connected using any signals n slots.
I checked using strace command n it generates infinite polling loop.
@Tinu What infinite polling loop do you mean?
Does your app hang or crash? It's really unclear from your description.
You just placed a QProgressBar and the problem occurs?
@jsulm The application is less responsive at times. It did not crash. Once the UI is up, even though the application is not receiving or sending any data the strace command shows lots of polling system calls.
@Tinu Sorry, but without the code I have no idea what the problem is. I don't know what you are doing in your application.
@Tinu seems to me that placing the Qprogressbar in your ui causes a resize-loop.
You don't see the constant resizes but the app slows down. Is your QProgressbar inside a Layout? Have you overwritten the resizevent anywhere in your app? Do you call
resizeon any objects in your ui?