Qt的遮罩效能使用。
Qt的遮罩功能使用。。。
在用Qt遮罩功能自定义窗口时,为什么窗口边框会出现一圈白色的呢?
------解决方案--------------------
QString str = ":/images/gradegrp/" + QString::number(index + 1) + ".png";
pix.load(":/images/1.png", 0, Qt::AvoidDither
------解决方案--------------------
Qt::ThresholdDither
------解决方案--------------------
Qt::ThresholdAlphaDither);
setMask(pix.mask());
在用Qt遮罩功能自定义窗口时,为什么窗口边框会出现一圈白色的呢?
------解决方案--------------------
QString str = ":/images/gradegrp/" + QString::number(index + 1) + ".png";
pix.load(":/images/1.png", 0, Qt::AvoidDither
------解决方案--------------------
Qt::ThresholdDither
------解决方案--------------------
Qt::ThresholdAlphaDither);
setMask(pix.mask());