开发者

Qt style - transparent border

开发者 https://www.devze.com 2023-03-12 04:09 出处:网络
widget.setSt开发者_运维问答yleSheet(\"border: 1px solid red\") makes red border. How can I make 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

精彩评论

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