This is actually very easy to do. I added a label and a push button for it, and used the Qt standard dialog QColorDialog for picking colors.