PDA

View Full Version : Qt controls blinking while update the values



shivcena
27th November 2015, 07:49
Im having a Qt widget based application which is having Slider , Progress bar . Im updating the values of each controls per every second basis like ui->my_Progress->setValue(timer_value); . The problem is the UI controls are blinking while updating the values in my ECU and it is working fine with the system. Also im using export QT_ONSCREEN_PAINT=force to run the application in my ECU.Any body having any idea on this.

anda_skoa
27th November 2015, 09:13
Have you tried without QT_ONSCREEN_PAINT?

Cheers,
_

shivcena
27th November 2015, 10:26
No , If i run with out QT_ONSCREEN_PAINT=force , the application is not display in the board . Do you know any other equivalent command for this?

anda_skoa
27th November 2015, 10:42
That sounds like there is something wrong with the whole setup.

On sceen painting sidesteps double buffering, i.e. the widgets are not drawn into a buffer which is then drawn onto the screen as usual but drawing happens directly on the screen.
This can be faster but can also lead to flickering, which I think is what you are seeing.

My recommendation would be fix the setup so that you can at least try with double buffering.

Cheers,
_