Qt 不规则控件

xiaoxiao2021-02-28  126

 QLabel topLevelLabel; 

 QPixmap pixmap(":/images.png"); 

 topLevelLabel.setPixmap(pixmap); 

 topLevelLabel.setMask(pixmap.mask()); //遮罩

转载请注明原文地址: https://www.6miu.com/read-61478.html

最新回复(0)