Ah, I see what you're getting at. That's not quite how this should be done. The maximum value shouldn't depend on what the combobox value was *at the time the page was generated*, but instead what the combobox value is *at this moment*. So instead of doing this in createPage(), I would suggest that this be connected to the itemChanged() slot on the combobox. Makes sense?