Good point! I want to change it, but I'm not sure where to pass the rank information. It is only used for the test pattern, so I'm not sure if it should be a class member? We can't pass parameters to the paint function since it is called by Qt directly...