开发者

Qt style - transparent border

widget.setSt开发者_运维问答yleSheet("border: 1px solid red")

makes red border.

How can I make transparent border?

So that when I add red border, widget size stays the same.


Random guess: did you try transparent in place of red? – thirtydot

Based on the fact that transparent works in "normal CSS", I guessed that it might work in Qt.

And it does work :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜