try changing setSpinBoxValue() from private slot to public slot!