Qt Designer does not allow child controls to inherit the style method of the parent window

Specify the control name when setting the style


#
#	控件类型 #对象名称 
#	{
    
    
#		样式
#	}


QFrame #frame
{
    
    
	background-color: rgb(0, 0, 0);
}

Guess you like

Origin blog.csdn.net/weixin_43574277/article/details/112057939