How to set the opacity of a widget whose parent is not NULL?



  • Is that possible?

    Thanks.


  • Moderators

    @
    QGraphicsOpacityEffect* opacityEffect = new QGraphicsOpacityEffect(this);
    opacityEffect->setOpacity( 0.7 );
    this->setGraphicsEffect(opacityEffect);
    @



  • Cool ! Thanks.
    [quote author="raven-worx" date="1390294777"]@
    QGraphicsOpacityEffect* opacityEffect = new QGraphicsOpacityEffect(this);
    opacityEffect->setOpacity( 0.7 );
    this->setGraphicsEffect(opacityEffect);
    @[/quote]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.