C++ (Qt)void MegoWidget::updateMask(){ QRegion reg(frameGeometry()); reg -= QRegion(geometry()); reg += childrenRegion(); setMask(reg);}
C++ (Qt)QPalette pal = palette();pal.setBrush(QPalette::Background, QBrush(QColor(255, 0, 0, 127)));setPalette(pal);