Qt Qframe Stylesheet
-
wrote on 8 Jul 2021, 23:28 last edited by
After changing the background color to red on a qframe, I want to give different styles to the controls in the frame, but the styles applied within the qframe are applied to all the controls in the frame. Is there a way to apply styles to frames and apply different styles to each control?
-
After changing the background color to red on a qframe, I want to give different styles to the controls in the frame, but the styles applied within the qframe are applied to all the controls in the frame. Is there a way to apply styles to frames and apply different styles to each control?
wrote on 9 Jul 2021, 04:02 last edited by@IknowQT
Hi,
it depends on how you write the StyleSheet.
Try to read https://forum.qt.io/topic/127918/how-to-apply-a-button-stylesheet/3 and check if you are in the same situation
1/2