How do I make a circle QLabel?
问题 I have a QLabel that i fill in red with the stylesheet, but the QLabel is rectangular, and I want a circle. I try to add border-radius, but it doesn't work, maybe because i put my QLabel in a formLayout. Is there a simple method to have a round QLabel by using stylesheet ? Thanks. EDIT : Using a picture seems more easier than doing this now. 回答1: Create an image that you use as a mask and set that on the label by calling setMask. As the documentation states: - Causes only the pixels of the