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

Bug with QGraphicsOpacityEffect probably?



  • So I have a widget. Inside the widget there is a scrollarea..
    If i try this:

    @QGraphicsOpacityEffect* opacityEffect = new QGraphicsOpacityEffect(this);
    opacityEffect->setOpacity(0.0);
    ui->widget->setGraphicsEffect(opacityEffect);
    QPropertyAnimation* anim = new QPropertyAnimation(this);
    anim->setTargetObject(opacityEffect);
    anim->setPropertyName("opacity");
    anim->setDuration(3000);
    anim->setStartValue(opacityEffect->opacity());
    anim->setEndValue(1);
    anim->setEasingCurve(QEasingCurve::OutQuad);
    anim->start(QAbstractAnimation::DeleteWhenStopped);@

    which always works with widgets, buttons, labels,etc
    the whole widget will be black

    You think i should report it as a bug?

    EDIT:
    This is like a scrollarea bug, cause it is the same with groupbox, stackwidget, etc




Log in to reply