QPushButton btn = new QPushButton(); QVBoxLayout* layout = new QVBoxLayout(btn); QLabel* label = new QLabel(); label->setAlignment(Qt::AlignHCenter); QMovie* movie = new QMovie("test.gif"); movie->setScaleSize(QSize(20,20)); label->setM
一.条纹背景 利用background为linear-gradient函数实现,linear-gradient取值如下: <angle>:角度,渐变的方向 to left right top bottom color:指定颜色 color-stop:指定渐变的起止颜色 length:用长度值指定起止色的位置,不可为负值 percentage:用百分比指定起止色的位置 语法格式:linear-gradient([[<angle>|to <side-to-corner>],