MDGSF Software Engineer

[Qt] 给toolbutton增加阴影效果

2016-07-21
Qt
 

QGraphicsDropShadowEffect *wndShadow = new QGraphicsDropShadowEffect;
wndShadow->setBlurRadius(9.0);
wndShadow->setColor(QColor(0, 0, 0, 160));
wndShadow->setOffset(4.0);
ui->localState_toolButton->setGraphicsEffect(wndShadow);

weixingongzhonghao

Comments

Content