Hi guy, I have a problem. I use a QPropertyAnimation to move a QLabel but not works.
void TitleChannel::changeChannel(float angle){
int channel=(int)(angle/60);
QPropertyAnimation *animation = new QPropertyAnimation(label, "geometry");
animation->setDuration(10000);
animation->setStartValue(QRect(0, 0, 360, 200));
animation->setEndValue(QRect(0, 240, 360, 200));
animation->setEasingCurve(QEasingCurve::InOutElastic);
animation->start();
}
"label" is a Qlabel pointer that is a parameter of constructor. I also use the property "pos" but not works. The "label" start into QRect(0, 0, 360, 200) but not move into QRect(0, 240, 360, 200) any help? Thanks