In your methods which handle properties you should do sanity checks of entered values and correct them if they are wrong. From my observations (in Qt3) it looks like that after setting a property immediately Qt asks for its value, so it should show a corrected value.