Thanks for your reply. Let us say if I have 3 label circles, which should fill up with colors red, green and blue. If I have one variable for color in my class, how paintEvent brush can fill these colors at a time with three colors.