在自定义widget中,通过setSheetStyle 设置的背景图片没有效果,必须加一层QFrame
定义一个QFrame, 设置QFrame的 sheetstyle
同时设置 widget setAutoFillBackground(true);