[Development] QPixmap::fill( const QWidget *, ... )

Olivier Goffart olivier at woboq.com
Tue Apr 10 19:55:08 CEST 2012


On Tuesday 10 April 2012 18:47:37 Samuel Rødal wrote:
> On 04/10/2012 06:40 PM, ext Uwe Rathmann wrote:
> > void QPixmap::fill(const QWidget *, ... );
> > 
> > In the documentation it is qualified as obsolete - left for
> > compatibility issues only - but in fact it is not implemented at all.
> > 
> > I could copy and strip down the code from Qt 4.8 ( fortunately this is
> > possible using public APIs only ), but of course I would prefer to find
> > the functionality in Qt 5 somewhere.
> 
> What's your use case? Maybe QWidget::render() with DrawWindowBackground
> and no DrawChildren can be used instead?
> 
> The QPixmap::fill(const QWidget *...) function was not possible to
> implement as in 4.8 since QPixmap is now part of QtGui whereas QWidget
> is part of QtWidgets.

In that case, it is probably better to remove it, rather than leave it non 
functional.

And it is possible to put the implementation of this function in QtWidget by 
providing a hook. (Same way QVariant has api that handle classes in 
QtGui/QtWidget)




More information about the Development mailing list