[Qt-jambi-interest] Property is referenced or copied?

Derek Fountain derekfountain at yahoo.co.uk
Wed May 14 19:38:58 CEST 2008


> Yes, when you call palette() on the widget, it returns a copy of the
> widget's palette. Similarly, setting the palette of a widget using
> setPalette() does not retain any reference to your original object,
> which you may alter freely afterwards without affecting the widget.

OK, in this light it all makes sense. :)

> I will make a suggestion for our documentation team to
> consider adding a note to methods that either return actual references
> to internal data or vice versa.

That would be very useful!


More information about the Qt-jambi-interest mailing list