[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Access to QBrush gradient
From:       David Boddie <david () boddie ! org ! uk>
Date:       2020-04-27 9:40:55
Message-ID: 2216490.4gs7NLbaoq () aurora
[Download RAW message or body]

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.

David
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic