Do anyone have an idea of this behaviour???
cout << Density << "\n"; //this print 0.13
float f = Density*100;
slider1->setValue(f); //this set slider1 to 12!!!! why????
cout << Density << "\n"; //this print 0.13
float f = Density*100;
slider1->setValue(f); //this set slider1 to 12!!!! why????
To copy to clipboard, switch view to plain text mode
float f = 0.13*100;
slider1->setValue(f); //this set slider1 to 13
float f = 0.13*100;
slider1->setValue(f); //this set slider1 to 13
To copy to clipboard, switch view to plain text mode
Bookmarks