ProgressBar not working
-
Hio :)
i wrote my little program where i want to display a calculated BMI using a progress bar.
The progress bar shows its outline, but no value.
my code:
@ bmi_value = new QProgressBar(this);
bmi_value->setValue(250);
bmi_value->setGeometry(25, 120, 350, 40);
bmi_value->setMinimum(0);
bmi_value->setMaximum(1000);@and:
@void BMI::calc(){
double bmi_tmp(0);bmi_tmp = weigth_value / (heigth_value * heigth_value);
bmi_value->setValue(bmi_tmp*10);
bmi_value->setFormat("%p");update();
}@
-
Do you actually call calc somewhere?