Qiao
Qiao

Reputation: 17049

Qt style - transparent border

widget.setStyleSheet("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.

Upvotes: 1

Views: 2740

Answers (1)

thirtydot
thirtydot

Reputation: 228182

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 :)

Upvotes: 5

Related Questions