1
6
必须将flat属性设置为true:
您还必须设置自动填充背景-
您可能需要查看qtoolbutton,它不要求它是平面的,以便渲染图像。我正在一个我正在编写的应用程序中使用它们,它们看起来非常漂亮:
(我的图像存储为资源) |
2
2
你的css选择器不正确。 你应该这样做:
|
3
1
您可以使用画笔作为调色板元素来填充任何小部件的背景,当按钮是平的时QpushButton可以工作。
|
JaredL · PySide插槽未在对象的线程中运行 7 年前 |
Nameless · qt-在选项卡小部件中显示表单 7 年前 |
Carmoreno · Pyqt4的“KeyUp”事件 8 年前 |
KcFnMi · 使Qt5连接样式在Qt4中工作 9 年前 |
Ejaz · QImage将图像保存到仅以p或j开头的文件名 10 年前 |