How to make Qt widgets fade in or fade out?

后端 未结 3 1254
天命终不由人
天命终不由人 2020-12-24 12:54

I am trying to fade in and fade out a QLabel or for that matter any QWidget subclass. I have tried with QGraphicsEffect, but unfortuna

3条回答
  •  独厮守ぢ
    2020-12-24 13:55

    You can put your widgets into a QGraphicsScene. It supports opacity changing and animation.

    See QGraphicsProxyWidget documentation for an example.

提交回复
热议问题