[Development] Qt::WA_PaintOnScreen Changes

Shaw Andy Andy.Shaw at digia.com
Thu Aug 14 18:34:12 CEST 2014


> > I am porting an application to Qt5/KF5 and was surprised to see the
> > main widget of the application was showing all black. There are
> > screenshots of the original version and the buggy version[1] online. I
> > removed
> >
> > setAttribute( Qt::WA_PaintOnScreen, true );
> >
> > on that widget and the widget was rendering fine again. I would like
> > to know if that was a good idea and what are the implications or if
> > this is a bug in Qt.
> 
> This seems odd. I'm not certain what would cause this, but it shouldn't be
> like that. Can you create a bugreport and provide a small example that
> reproduces this.

If you were using WA_PaintOnScreen then you also need to ensure you reimplement paintEngine() to return 0. Had you done that at all?

Andy



More information about the Development mailing list