文章目录 1、简介2、更改背景3、更改字体颜色、大小、格式 1、简介 更改QtDesgner 按钮上的背景、字体颜色、字体大小、字体格式 2、更改背景 代码中: self.pushButton.setStyleSheet("border-image:url(./image/test.png)") border-image:url(./image/test.png) 3、更改字体颜色、大小、格式 self.pushButton.setStyleSheet("color:rgb(0,0,255)")