右击控件-->:
添加字体-->
颜色--
渐变色-->
PyQt5--QTDesigner--UI样式表
原文:https://www.cnblogs.com/liming19680104/p/12165063.html