Qt之QPropertyAnimation&QEasingCurve
时间: 2018-09-18来源:OSCHINA
前景提要
「深度学习福利」大神带你进阶工程师,立即查看>>> QPushButton *btn = new QPushButton("Button", this); btn->setGeometry(10, 10, 100, 30); QPropertyAnimation *animation; animation = new QPropertyAnimation(btn, "geometry", this); animation->setDuration(3000);//从起始坐标到结束坐标的时长[单位ms]3s,默认250ms animation->setStartValue(QRect(10, 10, 100, 30)); //设置起始坐标 animation->setEndValue(QRect(200, 150, 100, 30)); //结束坐标,当坐标值改变时,会发生valueChanged信号事件 animation->start();


科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行