Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QGraphicsOpacityEffect Opacity How To Fix?



  • Hi, there are bugs in QPropertyAnimation, QGraphicsOpacityEffect.
    For example;

    alt text

    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?


  • Moderators

    Sorry, what are the bugs? What do you expect to see?



  • @xr4zz3rs Do you Hack games ?



  • @sierdzio Objects is slipping and as you can see in the photo how to i fix this?



  • This post is deleted!

  • Moderators

    @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"?


Log in to reply