Re: [Interest] more QSharedPointerQuestions

2012-03-02 Thread Bo Thorsen
Den 02-03-2012 14:07, Jason H skrev: > You raise some good points. In truth, I was told to use QSharedPointer, > but I had some of the same points you did. His intention (as I > understand it) was to use QSharedPointer to stop accidental deletes. I know some will disagree with this, but anyway...

Re: [Interest] more QSharedPointerQuestions

2012-03-02 Thread Jason H
st@qt-project.org" Sent: Thursday, March 1, 2012 5:16 PM Subject: Re: [Interest] more QSharedPointerQuestions On Thu, Mar 01, 2012 at 01:34:04PM -0800, Jason H wrote: > So I have a QObject-derived object tree, like a QObject* tree; I made > everything QSharedObject accordingly. Why? Q

Re: [Interest] more QSharedPointerQuestions

2012-03-01 Thread André Pönitz
On Thu, Mar 01, 2012 at 01:34:04PM -0800, Jason H wrote: > So I have a QObject-derived object tree, like a QObject* tree; I made > everything QSharedObject accordingly. Why? QObject ownership is typically handled easily using the parent-child relationship. Give your objects a parent object and f

[Interest] more QSharedPointerQuestions

2012-03-01 Thread Jason H
So I have a QObject-derived object tree, like a QObject* tree; I made everything QSharedObject accordingly. (I'll just use QObject in this email) I have a recursive query function. I want to use QSharedPointers so that I don't give the pointer directly to the tree because someone might delete