qt 制作不规则背景图

用setStyleSheet设置好背景

this->setStyleSheet("background-image: url(:/img/function.png)");
    this->setMask(*bitmap);
然后用setMask设置透明通道即可,参数是QBitmap.

猜你喜欢

转载自blog.csdn.net/qq_35674193/article/details/79178471
今日推荐