09-24-2013 06:13 PM
Does anyone know categorically if Option::setImage() transfers ownership of the image to the Option? Cascades documentation doesn't mention it either way, but most Cascades classes assume ownership when another object is added to them.
I've become fanatical lately about ensuring that all instantiated descendents of QObject have a parent.
09-24-2013 06:17 PM
09-24-2013 06:47 PM
I think I answered my own question. Image doesn't seem to have a parent as there is no Image::setParent() function. From what I can make out, Images are ALWAYS duplicated when assigned and the copy is owned by the assignee, although in some case it is a lazy copy, which is to say that the copy is a pointer to the original Image until one or both of the copies are modified, at which time they part ways and a real copy is made.