wanruirui:能给出方法吗?找了很久没找到。
(2015-06-23 21:59)
Qt 的样式表, stylesheet 帮助里写的很细,支持九宫切图的。
QPushButton {
color: grey;
border-image: url(/home/kamlie/code/button.png) 3 10 3 10;
border-top: 3px transparent;
border-bottom: 3px transparent;
border-right: 10px transparent;
border-left: 10px transparent;
}