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