[PyQt] Access to QBrush gradient

David Boddie david at boddie.org.uk
Mon Apr 27 10:40:55 BST 2020

On Mon Apr 27 09:00:02 BST 2020, Maurizio Berti wrote:

> Il giorno dom 26 apr 2020 alle ore 10:35 Phil Thompson <
> phil at riverbankcomputing.com> ha scritto:
> > I can fix that so the conversion is done automatically.
> Well, that would be great.
> I mean, it might be slightly inconsistent with the C++ behavior (correct me
> if I'm wrong, but a base QGradient is returned there too), but since I
> doubt that it would do any harm, it would certainly be very useful.

It's common to see more general classes used in the Qt API for function
parameters and return values. The nice thing about using PyQt is that it
can include checks for more specific types and do the casting for you, so
it most cases you never see instances of the base classes.


More information about the PyQt mailing list