Hello,

I have a simple question about Qlabel, I was googled for this question and I didin´t find any satisfactory solution. The question is :

If I try to change the text in a QLabel, the text appears onto the older text.

My code is :


sprintf (str, " frame rate %3d fps", cont_frames);

ui->label_frame_rate->setText (str);

ui->label_frame_rate->update();


This code is called every 1 secon, so the older text in the label is not removed.

Anyone can help me ?

Advenced thanks