There are 2 ways,,
1 - you can add spinbox in designer, right click and use promote-to option to promote it to the class you have written.
2 - Make your class as a designer plugin and you can drag drop your widget from there.
I guess option 1 will be easier to go.
Bookmarks