QGraphicsOpacityEffect Opacity How To Fix?
Unsolved
General and Desktop
-
Hi, there are bugs in QPropertyAnimation, QGraphicsOpacityEffect.
For example;
Code;
void MainWindow::CHEATSFadeinANIMATION() { QGraphicsOpacityEffect *eff = new QGraphicsOpacityEffect(this); ui->UICheatTab->setGraphicsEffect(eff); QPropertyAnimation *a = new QPropertyAnimation(eff,"opacity"); a->setDuration(500); a->setStartValue(0.0); a->setEndValue(1.0); a->start(QPropertyAnimation::DeleteWhenStopped); } void MainWindow::HOMEFadeinANIMATION() { QGraphicsOpacityEffect *eff = new QGraphicsOpacityEffect(this); ui->UIHomeTab->setGraphicsEffect(eff); QPropertyAnimation *a = new QPropertyAnimation(eff,"opacity"); a->setDuration(200); a->setStartValue(0.0); a->setEndValue(1.0); a->setEasingCurve(QEasingCurve::InBack); a->start(QPropertyAnimation::DeleteWhenStopped); } void MainWindow::ACCOUNTFadeinANIMATION() { QGraphicsOpacityEffect *eff = new QGraphicsOpacityEffect(this); ui->UIAccountTab->setGraphicsEffect(eff); QPropertyAnimation *a = new QPropertyAnimation(eff,"opacity"); a->setDuration(500); a->setStartValue(0); a->setEndValue(1); a->setEasingCurve(QEasingCurve::InBack); a->start(QPropertyAnimation::DeleteWhenStopped); }
Could you help?
-
Sorry, what are the bugs? What do you expect to see?
-
@xr4zz3rs said in QGraphicsOpacityEffect Opacity How To Fix?:
Objects is slipping and as you can see in the photo how to i fix this?
No I don't see anything in the photo. I don't know what is wrong, so I can't even begin helping you fix. What do you mean by "slipping"?