[Development] Why don't we have notify signal for all of the properties?
Thiago Macieira
thiago.macieira at intel.com
Fri Jul 6 15:29:13 CEST 2012
On sexta-feira, 6 de julho de 2012 15.06.34, Tr3wory wrote:
> On Fri, Jul 6, 2012 at 2:42 PM, Richard Moore <rich at kde.org> wrote:
> > On 6 July 2012 13:26, Tr3wory <tr3w at freemail.hu> wrote:
> >> But the QWidget's weight property doesn't have a corresponding
> >> weightChanged() signal (nor sizeChanged() or something higher level).
> >> Actually it doesn't have any NOTIFY signal at all.
> >
> > QWidget doesn't have a weight() property. If it's something you've
> > added in one of your subclasses, then that subclass is responsible for
> > exposing the property and adding the notify signal.
>
> Sorry, I mean width, or height...
QWidget was written before properties could have NOTIFY signals. That's why
its properties don't notify of changes.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120706/3b7264e3/attachment.sig>
More information about the Development
mailing list