There is an example of a Hex Spinbox in the C++ GUI Programming with Qt 4 book. Google has these pages here.