Used setObjectName(borderedGroupBox) instead of definning the StyleSheet each time.