It displays the correct color when the child QFrame is selected with mouse click or all children QFrames are selected.